NOTE: All PBCore input is using PBCore 2.0 XML unless otherwise specified.
NOTE: All RDF output is in Turtle format unless otherwise specified.
PBCore input:
<pbcoreDescriptionDocument>
<pbcorecreator>
<creator>Alice</creator>
</pbcorecreator>
</pbcoreDescriptionDocument>
RDF output
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix my: <http://example.org/my-namespace#> .
[] <about> my:00001 ;
ebucore:hasCreator "Alice" .
PBCore input:
<pbcoreDescriptionDocument>
<pbcorecreator>
<creator affiliation="XYZ Productions">Alice</creator>
<creatorRole>Director</creatorRole>
</pbcorecreator>
</pbcoreDescriptionDocument>
RDF output:
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix my: <http://example.org/my-namespace#> .
[] <about> my:00001 ;
ebucore:hasCreator my:00002 .
my:00002 a ebucore:Agent ;
ebucore:agentName "Alice" ;
ebucore:hasRole "Director" ;
ebucore:hasAffiliation "XYZ Productions" .
TODO: Not sure if range of
ebucore:hasAffiliation
can be a literal; ask Jean-Pierre Evain.
PBCore input:
<pbcoreDescriptionDocument>
<pbcorecreator>
<creator ref="http://external.org/Alice" />
</pbcorecreator>
</pbcoreDescriptionDocument>
RDF output:
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix my: <http://example.org/my-namespace#> .
@prefix external: <http://external.org/> .
[] <about> my:00001 ;
ebucore:hasCreator external:Alice .
PBCore input:
<pbcoreDescriptionDocument>
<pbcorecreator>
<creator ref="http://external.org/Alice">Alice</creator>
</pbcorecreator>
</pbcoreDescriptionDocument>
RDF output:
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix my: <http://example.org/my-namespace#> .
@prefix external: <http://external.org/> .
@prefix dc-terms: <http://purl.org/dc/terms/> .
[] <about> my:00001 ;
ebucore:hasCreator my:00002 .
my:00002 a ebucore:Agent ;
ebucore:agentName "Alice" ;
dc-terms:references external:Alice .
TODO: Is this the right namespace for DublinCore terms?
TODO: Is this an appropriate use for dc-terms:referenes? If not, what is an appropriate way to establish the relationship between our ebucore:Agent and an external URI?
PBCore input:
<pbcoreDescriptionDocument>
<pbcorecreator>
<creator>Alice</creator>
<creatorRole ref="http://pbcore.org/vocabularies/creatorRole#director">Director<creatorRole/>
</pbcorecreator>
</pbcoreDescriptionDocument>
RDF output:
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix my: <http://example.org/my-namespace#> .
[] <about> my:00001 ;
ebucore:hasCreator my:00002 .
my:00002 a ebucore:Agent ;
ebucore:agentName "Alice" ;
ebucore:hasRole <http://pbcore.org/vocabularies/creatorRole#director>, "Director" .