Skip to Content.
Sympa Menu

cc-devel - Re: [cc-devel] How to XMP-tag an image with a CC licence?

cc-devel AT lists.ibiblio.org

Subject: Developer discussion for Creative Commons technology and tools

List archive

Chronological Thread  
  • From: Andrew Smith <asmith16 AT littlesvr.ca>
  • To: Matt Lee <mattl AT creativecommons.org>
  • Cc: "cc-devel AT lists.ibiblio.org devel" <cc-devel AT lists.ibiblio.org>
  • Subject: Re: [cc-devel] How to XMP-tag an image with a CC licence?
  • Date: Wed, 25 Mar 2015 23:43:27 -0400

Thanks, that helped a lot.

To answer my own questions (in case someone else is looking for the same):

* xmpRights:WebStatement has conflicting definitions. This set of wiki pages says it should point to a work-specific URL:

https://wiki.creativecommons.org/XMP#Specifying_License_Information
https://wiki.creativecommons.org/WebStatement
https://wiki.creativecommons.org/Embedded_Metadata

but the following documents (including the CC chooser) say no such thing:

https://creativecommons.org/choose/
http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf
XMPSpecificationPart1.pdf

So I will assume that the wiki pages were written before or despite both the common and specified rules and will ignore them (should fix them at some point). I will use xmpRights:WebStatement to point to an author's URL, not necessarily specific to the work.

* dc:rights and cc:AttributionURL will be set to the same as xmpRights:WebStatement

* I'll set xmpRights:UsageTerms to a human-readable string though I don't really see the point.

* Things can be both in the same and in separate <Description> elements. And according to the XMP specification they can just as well be attributes as elements. I shiver thinking of what it takes to write a proper parser for this horror.

Cheers,

Andrew

On 24/03/15 17:49, Matt Lee wrote:
Hey Andrew,

Thanks for helping out with this part of the puzzle. For those
following along, this work is part of The List app, or rather, some of
the server side processing components.

I generated a license using https://creativecommons.org/choose/ and
chose XMP as my output, I got this:

http://paste.debian.net/plain/163046

<?xpacket begin='' id=''?>
<x:xmpmeta xmlns:x='adobe:ns:meta/'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<rdf:Description rdf:about=''
xmlns:xapRights='http://ns.adobe.com/xap/1.0/rights/'>
<xapRights:Marked>True</xapRights:Marked>
</rdf:Description>
<rdf:Description rdf:about=''
xmlns:xapRights='http://ns.adobe.com/xap/1.0/rights/'
>
<xapRights:UsageTerms>
<rdf:Alt>
<rdf:li xml:lang='x-default' >This work is licensed under a &lt;a
rel=&#34;license&#34;
href=&#34;http://creativecommons.org/licenses/by/4.0/&#34;&gt;Creative
Commons Attribution 4.0 International License&lt;/a&gt;.</rdf:li>
<rdf:li xml:lang='en_US' >This work is licensed under a &lt;a
rel=&#34;license&#34;
href=&#34;http://creativecommons.org/licenses/by/4.0/&#34;&gt;Creative
Commons Attribution 4.0 International License&lt;/a&gt;.</rdf:li>
<rdf:li xml:lang='en' >This work is licensed under a &lt;a
rel=&#34;license&#34;
href=&#34;http://creativecommons.org/licenses/by/4.0/&#34;&gt;Creative
Commons Attribution 4.0 International License&lt;/a&gt;.</rdf:li>
</rdf:Alt>
</xapRights:UsageTerms>
</rdf:Description>
<rdf:Description rdf:about=''
xmlns:dc='http://purl.org/dc/elements/1.1/'>
<dc:title>
<rdf:Alt>
<rdf:li xml:lang='x-default'>Photo of a cat</rdf:li>
<rdf:li xml:lang='en_US'>Photo of a cat</rdf:li>
</rdf:Alt>
</dc:title>
</rdf:Description>
<rdf:Description rdf:about=''
xmlns:cc='http://creativecommons.org/ns#'>
<cc:license
rdf:resource='http://creativecommons.org/licenses/by/4.0/'/>
</rdf:Description>
<rdf:Description rdf:about=''
xmlns:cc='http://creativecommons.org/ns#'>
<cc:attributionName>Matt Lee</cc:attributionName>
</rdf:Description>

</rdf:RDF>
</x:xmpmeta>
<?xpacket end='r'?>





Archive powered by MHonArc 2.6.24.

Top of Page