creativecommons / creativecommons.org

Legacy legal code translations and general support issues
MIT License
156 stars 204 forks source link

License infos in SVG file? #1211

Closed BilouMaster closed 3 years ago

BilouMaster commented 3 years ago

Hello, my question is not about the website but lincensing in general...

I was wondering if it was possible to license an SVG file/code, and if my method was correct:

<svg version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#">
<metadata>
    <rdf:RDF>
        <cc:Work rdf:about="">
            <cc:license rdf:resource="http://creativecommons.org/licenses/chosen-license/4.0/"/>
            <cc:attributionName>Name of the creator</cc:attributionName>
            <cc:attributionURL rdf:resource="http://url-of-the-creator"/>
        </cc:Work>
    </rdf:RDF>
</metadata>
...
</svg>

What do you think of this solution? I am not used to metadata and RDF things...

Thank you!

BilouMaster commented 3 years ago

Maybe it could be simplified?

<svg version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:cc="http://creativecommons.org/ns#">
<metadata>
    <cc:Work>
        <cc:license>http://creativecommons.org/licenses/chosen-license/4.0/</cc:license>
        <cc:attributionName>Name of the creator</cc:attributionName>
        <cc:attributionURL>http://url-of-the-creator</cc:attributionURL>
    </cc:Work>
</metadata>
...
</svg>
brylie commented 3 years ago

@BilouMaster the markup above looks correct.

Related question: