Changeset 3809 for CMDI-Interoperability
- Timestamp:
- 10/18/13 15:52:58 (11 years ago)
- Location:
- CMDI-Interoperability/CMD2RDF/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CMDI-Interoperability/CMD2RDF/trunk/data/general.ttl
r3807 r3809 23 23 24 24 :contains rdf:type rdf:Property; 25 rdfs:domain :Component; 26 rdfs:range :Component, :Element. 27 28 :containsAttribute rdf:type rdf:Property; 25 29 rdfs:domain :Component, :Element; 26 rdfs:range :Component, :Element, :Attribute. 27 #CHECK: this would allow: 28 # _:element :contains _:component. ! 30 rdfs:range :Attribute. 29 31 30 32 :Entity a rdfs:Class. … … 32 34 ### http://www.clarin.eu/cmd/general.rdf#hasElementValue 33 35 :hasElementValue rdf:type rdf:Property; 34 rdfs:domain :Element. 35 #CHECK: can you specify that the range can be any XS literal? 36 # COMMENT: the proposal was rdfs:Literal. 36 rdfs:domain :Element; 37 rdfs:domain rdfs:Literal. 37 38 38 39 # add a parallel separate property for the resolved entities … … 43 44 ### http://www.clarin.eu/cmd/general.rdf#hasAttribute 44 45 :hasAttributeValue rdf:type rdf:Property; 45 rdfs:domain :Attribute. 46 #CHECK: can you specify that the range can be any XS literal? 47 # COMMENT[matej]: rdfs:Literal? 46 rdfs:domain :Attribute; 47 rdfs:range rdfs:Literal. 48 48 49 49 # And then consequently also for attribute -
CMDI-Interoperability/CMD2RDF/trunk/xsl/CMDRecord2RDF.xsl
r3806 r3809 170 170 <!-- find the matching instances --> 171 171 <xsl:for-each select="$instance/@*[local-name()=$name]"> 172 <cmdm:contains >172 <cmdm:containsAttribute> 173 173 <xsl:element name="{$id}" namespace="{$ns}"> 174 174 <xsl:attribute name="rdf:about" select="concat('#',generate-id(.))"/> … … 185 185 </xsl:if> 186 186 </xsl:element> 187 </cmdm:contains >187 </cmdm:containsAttribute> 188 188 </xsl:for-each> 189 189 </xsl:template>
Note: See TracChangeset
for help on using the changeset viewer.