Identification of templates
Posted: Tue Apr 23, 2013 8:13 pm
As discussed in MMT SIG and P8IWG, see below samples of template definition and template instance presumably compliant to JORD ID spec.
One simple template is selected - Classification.
Template and template roles have human-readable fragment identifiers as part of URI.
Template and template roles have UUIDs assigned via pca:defaultRdsId predicate.
Template instance is self-explanatory.
Please comment on these examples. Are they correct? Are there enough data for tools developed?
Samples below can be cut-and-pasted into a text file with .rdf extension. Is it enough or sandbox endpoint is required by any testers?
Classification template:
Template instance:
One simple template is selected - Classification.
Template and template roles have human-readable fragment identifiers as part of URI.
Template and template roles have UUIDs assigned via pca:defaultRdsId predicate.
Template instance is self-explanatory.
Please comment on these examples. Are they correct? Are there enough data for tools developed?
Samples below can be cut-and-pasted into a text file with .rdf extension. Is it enough or sandbox endpoint is required by any testers?
Classification template:
Code: Select all
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY owl "http://www.w3.org/2002/07/owl#" >
<!ENTITY p7tm "http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/p7tm#" >
<!ENTITY dm "http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#" >
<!ENTITY pca "http://posccaesar.org/rdl/" >
]>
<rdf:RDF
xmlns="http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/p7tpl#"
xml:base="http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/p7tpl"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:p7tm="http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/p7tm#"
xmlns:dm="http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#"
xmlns:pca=" http://posccaesar.org/rdl/"
>
<owl:Class rdf:about="#Classification">
<rdfs:label>Classification</rdfs:label>
<pca:defaultRdsId>R-2d0daa18-30e0-49b7-aaa8-2ba433cb817a</pca:defaultRdsId>
<rdfs:comment>This class represents the ISO 15926-7 proto-template ClassificationTemplate.</rdfs:comment>
<rdfs:subClassOf rdf:resource="&p7tm;BaseTemplateStatement" />
<rdfs:subClassOf>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#hasClassifier" />
<owl:allValuesFrom rdf:resource="&dm;Class" />
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasClassifier" />
<owl:qualifiedCardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:qualifiedCardinality>
<owl:onClass rdf:resource="&dm;Class" />
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#hasClassified" />
<owl:allValuesFrom rdf:resource="&dm;Thing" />
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasClassified" />
<owl:qualifiedCardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:qualifiedCardinality>
<owl:onClass rdf:resource="&dm;Thing" />
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</rdfs:subClassOf>
</owl:Class>
<p7tm:TemplateDescription rdf:about="#Classification__desc">
<rdf:type rdf:resource="&owl;Thing" />
<p7tm:valNumberOfRoles rdf:datatype="&xsd;integer">2</p7tm:valNumberOfRoles>
<p7tm:hasTemplate rdf:resource="#Classification" />
</p7tm:TemplateDescription>
<p7tm:TemplateRoleDescription rdf:about="#Classification__rdesc2">
<rdf:type rdf:resource="&owl;Thing" />
<p7tm:valRoleIndex rdf:datatype="&xsd;integer">2</p7tm:valRoleIndex>
<p7tm:hasRoleFillerType rdf:resource="&dm;Class" />
<p7tm:hasTemplate rdf:resource="#Classification" />
<p7tm:hasRole rdf:resource="#hasClassifier" />
</p7tm:TemplateRoleDescription>
<p7tm:TemplateRoleDescription rdf:about="#Classification__rdesc1">
<rdf:type rdf:resource="&owl;Thing" />
<p7tm:valRoleIndex rdf:datatype="&xsd;integer">1</p7tm:valRoleIndex>
<p7tm:hasRoleFillerType rdf:resource="&dm;Thing" />
<p7tm:hasTemplate rdf:resource="#Classification" />
<p7tm:hasRole rdf:resource="#hasClassified" />
</p7tm:TemplateRoleDescription>
<owl:ObjectProperty rdf:about="#hasClassifier">
<rdfs:label>hasClassifier</rdfs:label>
<pca:defaultRdsId>R-43f790b7-9370-407b-ad6a-a07d34d3ef82</pca:defaultRdsId>
<rdfs:subPropertyOf rdf:resource="&p7tm;hasObjectRoleFiller" />
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="#hasClassified">
<rdfs:label>hasClassified</rdfs:label>
<pca:defaultRdsId>R-a63e7771-bd9b-4621-9015-93e91039ef54</pca:defaultRdsId>
<rdfs:subPropertyOf rdf:resource="&p7tm;hasObjectRoleFiller" />
</owl:ObjectProperty>
</rdf:RDF>
Code: Select all
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY owl "http://www.w3.org/2002/07/owl#" >
<!ENTITY p7tpl "http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/p7tpl#" >
<!ENTITY pcardl "http://posccaesar.org/rdl/" >
]>
<rdf:RDF
xmlns="http://example.org/rdl#"
xml:base="http://example.org/rdl"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:p7tpl="http://standards.iso.org/iso/ts/15926/-8/ed-1/tech/reference-data/p7tpl#"
xmlns:pcardl="http://posccaesar.org/rdl/"
>
<rdf:Description rdf:about="#id63e30338-945b-4d03-aa6e-7d169b6211e3">
<rdfs:label>classification_sample</rdfs:label>
<rdf:type rdf:resource="&p7tpl;Classification" />
<rdf:type rdf:resource="&owl;Thing" />
<p7tpl:hasClassified rdf:resource="&pcardl;RDS327239" />
<p7tpl:hasClassifier rdf:resource="&pcardl;RDS208394" />
</rdf:Description>
</rdf:RDF>