Changeset 3806 for CMDI-Interoperability
- Timestamp:
- 10/18/13 15:16:27 (11 years ago)
- Location:
- CMDI-Interoperability/CMD2RDF/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
CMDI-Interoperability/CMD2RDF/trunk/data/general.ttl
r3797 r3806 18 18 :Element rdf:type rdfs:Class . 19 19 20 ### http://www.clarin.eu/cmd/general.rdf#Attribute 21 :Attribute rdf:type rdfs:Class . 22 #CHECK: is Attribute a sub class of Element? 23 20 24 :contains rdf:type rdf:Property; 21 rdfs:domain :Component ;22 rdfs:range :Component, :Element .25 rdfs:domain :Component, :Element; 26 rdfs:range :Component, :Element, :Attribute. 23 27 24 : Value a rdfs:Literal.28 :Entity a rdfs:Class. 25 29 26 30 ### http://www.clarin.eu/cmd/general.rdf#hasElementValue 27 31 :hasElementValue rdf:type rdf:Property; 28 rdfs:domain :Element; 29 rdfs:range :Value. 30 31 ### http://www.clarin.eu/cmd/general.rdf#hasAttribute 32 :hasAttribute rdf:type rdf:Property; 33 rdfs:domain :Component, :Element; 34 rdfs:range :Value. 35 32 rdfs:domain :Element. 33 #CHECK: can you specify that the range can be any XS literal? 36 34 37 35 # add a parallel separate property for the resolved entities 38 36 :hasElementEntity rdf:type rdf:Property; 39 37 rdfs:domain :Element. 40 # rdfs:range ???. 41 38 rdfs:range :Entity. 39 40 ### http://www.clarin.eu/cmd/general.rdf#hasAttribute 41 :hasAttributeValue rdf:type rdf:Property; 42 rdfs:domain :Attribute. 43 #CHECK: can you specify that the range can be any XS literal? 44 42 45 # And then consequently also for attribute 43 46 :hasAttributeEntity rdf:type rdf:Property. 47 rdfs:domain :Component, :Element; 48 rdfs:range :Entity. -
CMDI-Interoperability/CMD2RDF/trunk/xsl/CMDRecord2RDF.xsl
r3801 r3806 4 4 <!ENTITY rdfs 'http://www.w3.org/TR/WD-rdf-schema#'> 5 5 <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#'> 6 <!ENTITY cmdm 'http://www.clarin.eu/cmd/general. ttl#'>6 <!ENTITY cmdm 'http://www.clarin.eu/cmd/general.rdf#'> 7 7 ]> 8 8 <xsl:stylesheet … … 12 12 xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 13 13 xmlns:cmd="http://www.clarin.eu/cmd/" 14 xmlns:cmdm="http://www.clarin.eu/cmd/general. ttl"14 xmlns:cmdm="http://www.clarin.eu/cmd/general.rdf" 15 15 > 16 16 -
CMDI-Interoperability/CMD2RDF/trunk/xsl/Component2RDF.xsl
r3801 r3806 4 4 <!ENTITY rdfs 'http://www.w3.org/TR/WD-rdf-schema#'> 5 5 <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#'> 6 <!ENTITY cmdm 'http://www.clarin.eu/cmd/general. ttl#'>6 <!ENTITY cmdm 'http://www.clarin.eu/cmd/general.rdf#'> 7 7 ]> 8 8 <xsl:stylesheet … … 12 12 xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 13 13 xmlns:cmd="http://www.clarin.eu/cmd/" 14 xmlns:cmdm="http://www.clarin.eu/cmd/general. ttl"14 xmlns:cmdm="http://www.clarin.eu/cmd/general.rdf" 15 15 > 16 16 … … 109 109 <!-- if there is an value enumeration also have a hasElementEntity property --> 110 110 <if test="exists(ValueScheme/enumeration)"> 111 <rdf:Class rdf:about="{$id}Entity"> 112 <rdf:subClassOf rdf:resource="&cmdm;Entity"/> 113 </rdf:Class> 111 114 <rdf:Property rdf:about="{$has}ElementEntity"> 112 115 <rdfs:subPropertyOf rdf:resource="&cmdm;hasElementEntity"/> … … 114 117 <rdfs:domain rdf:resource="{$id}"/> 115 118 <!-- the range consists of a superclass for the specific value classes --> 116 <rdfs:range rdf:resource="{$id} Value"/>119 <rdfs:range rdf:resource="{$id}Entity"/> 117 120 </rdf:Property> 118 121 </if> … … 132 135 <!-- a value in a value scheme becomes a subclass of that scheme --> 133 136 <rdf:Class rdf:about="{$context}Value{$STEP}{$id}"> 134 <rdf:subClassOf rdf:resource="{$context} Value"/>137 <rdf:subClassOf rdf:resource="{$context}Entity"/> 135 138 <xsl:call-template name="generic"/> 136 139 <rdfs:label> … … 173 176 <!-- if there is an value enumeration also have a hasAttributeEntity property --> 174 177 <xsl:if test="exists(ValueScheme/enumeration)"> 178 <rdf:Class rdf:about="{$id}Entity"> 179 <rdf:subClassOf rdf:resource="&cmdm;Entity"/> 180 </rdf:Class> 175 181 <rdf:Property rdf:about="{$has}Entity"> 176 182 <rdfs:subPropertyOf rdf:resource="&cmdm;hasAttributeEntity"/> … … 178 184 <rdfs:domain rdf:resource="{id}"/> 179 185 <!-- the range consists of a superclass for the specific value classes --> 180 <rdfs:range rdf:resource="{$id} Value"/>186 <rdfs:range rdf:resource="{$id}Entity"/> 181 187 </rdf:Property> 182 188 </xsl:if>
Note: See TracChangeset
for help on using the changeset viewer.