cpfaff / ease

EASE (Essential Annotation Schema for Ecology)
0 stars 2 forks source link

Move on to use 'isCharacterizedBy' in more places #89

Closed cpfaff closed 8 years ago

cpfaff commented 8 years ago

We agreed to use isCharacteerizedBy in more places. I started and have the first question regarding this @naouelkaram. How to add more classes to the restriction than one. That seems not to be valid:

<Class rdf:about="http://terminologies.gfbio.org/terms/cafe#DateTimeRange">
<rdfs:subClassOf rdf:resource="http://terminologies.gfbio.org/terms/cafe#TemporalAspect"/>
<rdfs:subClassOf>
<Restriction>
<onProperty rdf:resource="http://terminologies.gfbio.org/terms/cafe#isCharacterizedBy"/>
<someValuesFrom rdf:resource="http://terminologies.gfbio.org/terms/cafe#EndDate"/>
<someValuesFrom rdf:resource="http://terminologies.gfbio.org/terms/cafe#EndTime"/>
<someValuesFrom rdf:resource="http://terminologies.gfbio.org/terms/cafe#StartDate"/>
<someValuesFrom rdf:resource="http://terminologies.gfbio.org/terms/cafe#StartTime"/>
</Restriction>
</rdfs:subClassOf>
<rdfs:label xml:lang="en">Date Time Range</rdfs:label>
<rdfs:comment xml:lang="en">
The Date Time Range is a range in time that is catpured via
seperate date and time elements that designate the start and end of
the range. All elements need to be conform to the iso 8601
standard.
</rdfs:comment>
</Class>
cpfaff commented 8 years ago

I think I solved it? Is this right @naouelkaram

<Class rdf:about="http://terminologies.gfbio.org/terms/cafe#DateTimeRange">
    <rdfs:subClassOf rdf:resource="http://terminologies.gfbio.org/terms/cafe#TemporalAspect"/>
    <rdfs:subClassOf>
        <Restriction>
            <onProperty rdf:resource="http://terminologies.gfbio.org/terms/cafe#isCharacterizedBy"/>
            <someValuesFrom>
                <Class>
                    <unionOf rdf:parseType="Collection">
                        <rdf:Description rdf:about="http://terminologies.gfbio.org/terms/cafe#EndDate"/>
                        <rdf:Description rdf:about="http://terminologies.gfbio.org/terms/cafe#EndTime"/>
                        <rdf:Description rdf:about="http://terminologies.gfbio.org/terms/cafe#StartDate"/>
                        <rdf:Description rdf:about="http://terminologies.gfbio.org/terms/cafe#StartTime"/>
                    </unionOf>
                </Class>
            </someValuesFrom>
        </Restriction>
    </rdfs:subClassOf>
    <rdfs:comment xml:lang="en">
        The Date Time Range is a range in time that is catpured via
        seperate date and time elements that designate the start and end of
        the range. All elements need to be conform to the iso 8601
        standard.
    </rdfs:comment>
    <rdfs:label xml:lang="en">Date Time Range</rdfs:label>
</Class>