Changeset 3809 for CMDI-Interoperability


Ignore:
Timestamp:
10/18/13 15:52:58 (11 years ago)
Author:
mwindhouwer
Message:

M data/general.ttl

  • added cmdm:containsAttribute
  • resurrected rdfs:Literal

M xsl/CMDRecord2RDF.xsl

  • use cmdm:containsAttribute
Location:
CMDI-Interoperability/CMD2RDF/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMDI-Interoperability/CMD2RDF/trunk/data/general.ttl

    r3807 r3809  
    2323
    2424:contains rdf:type rdf:Property;
     25           rdfs:domain :Component;
     26           rdfs:range :Component, :Element.
     27
     28:containsAttribute rdf:type rdf:Property;
    2529           rdfs:domain :Component, :Element;
    26            rdfs:range :Component, :Element, :Attribute.
    27 #CHECK: this would allow:
    28 # _:element :contains _:component. !
     30           rdfs:range :Attribute.
    2931
    3032:Entity a rdfs:Class.
     
    3234###  http://www.clarin.eu/cmd/general.rdf#hasElementValue
    3335: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.
    3738
    3839# add a parallel separate property for the resolved entities
     
    4344###  http://www.clarin.eu/cmd/general.rdf#hasAttribute
    4445: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.
    4848
    4949# And then consequently also for attribute
  • CMDI-Interoperability/CMD2RDF/trunk/xsl/CMDRecord2RDF.xsl

    r3806 r3809  
    170170        <!-- find the matching instances -->
    171171        <xsl:for-each select="$instance/@*[local-name()=$name]">
    172             <cmdm:contains>
     172            <cmdm:containsAttribute>
    173173                <xsl:element name="{$id}" namespace="{$ns}">
    174174                    <xsl:attribute name="rdf:about" select="concat('#',generate-id(.))"/>
     
    185185                    </xsl:if>
    186186                </xsl:element>
    187             </cmdm:contains>
     187            </cmdm:containsAttribute>
    188188        </xsl:for-each>
    189189    </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.