NIHVIVO-2725: replaced rdf:type statements with vitro:mostSpecificType

This commit is contained in:
tworrall 2011-10-25 20:45:13 +00:00
parent ffc5f98325
commit 2159c4ae6a
9 changed files with 67 additions and 34 deletions

View file

@ -36,9 +36,9 @@
OPTIONAL { ?degree core:abbreviation ?degreeAbbr }
}
<collated>
OPTIONAL { ?subclass rdfs:subClassOf core:AdvisingRelationship .
?advisory a ?subclass
}
OPTIONAL { ?advisory vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:AdvisingRelationship
}
</collated>
OPTIONAL { ?advisory core:dateTimeInterval ?dateTimeInterval
OPTIONAL { ?dateTimeInterval core:start ?dateTimeStartValue .
@ -128,13 +128,15 @@
<query-construct>
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?subject ?property ?advisory .
?advisory a ?subclass
?advisory vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:AdvisingRelationship
} WHERE {
?subject ?property ?advisory .
?subclass rdfs:subClassOf core:AdvisingRelationship .
?advisory a ?subclass
?advisory vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:AdvisingRelationship
}
</query-construct>

View file

@ -9,6 +9,7 @@
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
PREFIX bibo: &lt;http://purl.org/ontology/bibo/&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
SELECT DISTINCT <collated> ?subclass </collated>
?authorship
@ -46,8 +47,8 @@
}
<collated>
OPTIONAL { ?subclass rdfs:subClassOf core:InformationResource .
?infoResource a ?subclass
OPTIONAL { ?infoResource vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:InformationResource
}
</collated>
OPTIONAL { ?infoResource core:hasPublicationVenue ?publishedIn .
@ -170,15 +171,16 @@
<query-construct>
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?subject ?property ?authorship .
?authorship core:linkedInformationResource ?infoResource .
?infoResource a ?subclass
?infoResource vitro:mostSpecificType ?subclass .
?authorship core:linkedInformationResource ?infoResource
} WHERE {
?subject ?property ?authorship .
?authorship core:linkedInformationResource ?infoResource .
?subclass rdfs:subClassOf core:InformationResource .
?infoResource a ?subclass
?infoResource vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:InformationResource
}
</query-construct>

View file

@ -9,6 +9,7 @@
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
SELECT DISTINCT <collated> ?subclass </collated>
?edTraining
@ -21,8 +22,8 @@
OPTIONAL { ?edTraining core:trainingAtOrganization ?org .
?org rdfs:label ?orgName
<collated>
OPTIONAL { ?subclass rdfs:subClassOf foaf:Organization .
?org a ?subclass
OPTIONAL { ?org vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf foaf:Organization
}
</collated>
}
@ -94,13 +95,15 @@
<query-construct>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?org a ?subclass
?subject ?property ?edTraining .
?org vitro:mostSpecificType ?subclass .
?edTraining core:trainingAtOrganization ?org
} WHERE {
?subject ?property ?edTraining .
?edTraining core:trainingAtOrganization ?org .
?org a ?subclass
?org vitro:mostSpecificType ?subclass .
?edTraining core:trainingAtOrganization ?org
}
</query-construct>

View file

@ -27,7 +27,8 @@
OPTIONAL { ?activity rdfs:label ?activityLabel }
<collated>
?activity vitro:mostSpecificType ?subclass
?activity vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:hasInvestigatorRole
</collated>
}
OPTIONAL { ?activity core:grantAwardedBy ?awardedBy .
@ -61,10 +62,12 @@
?subject ?property ?role .
?role core:roleIn ?activity .
?activity vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:hasInvestigatorRole
} WHERE {
?subject ?property ?role .
?role core:roleIn ?activity .
?activity vitro:mostSpecificType ?subclass
?activity vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:hasInvestigatorRole
}
</query-construct>

View file

@ -9,6 +9,7 @@
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
SELECT DISTINCT <collated> ?subclass </collated>
?authorship
@ -18,7 +19,7 @@
OPTIONAL { ?authorship core:linkedAuthor ?person .
?person rdfs:label ?personName
<collated>
OPTIONAL { ?person a ?subclass .
OPTIONAL { ?person vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf foaf:Person
}
</collated>
@ -41,12 +42,13 @@
<query-construct>
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?subject ?property ?authorship .
?authorship ?authorshipProperty ?authorshipValue .
?person rdfs:label ?personName .
?person a ?subclass
?person vitro:mostSpecificType ?subclass
} WHERE {
{
?subject ?property ?authorship
@ -61,7 +63,7 @@
?subject ?property ?authorship .
?authorship core:linkedAuthor ?person .
?person rdfs:label ?personName .
?person a ?subclass
?person vitro:mostSpecificType ?subclass
}
}
</query-construct>

View file

@ -8,6 +8,7 @@
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
SELECT DISTINCT <collated> ?subclass </collated>
?position
@ -19,7 +20,7 @@
?person rdfs:label ?personName
}
<collated>
OPTIONAL { ?position a ?subclass .
OPTIONAL { ?position vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:Position
}
</collated>
@ -42,10 +43,15 @@
<query-construct>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?subject ?property ?position .
?position vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:Position
} WHERE {
?subject ?property ?position .
?position vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:Position
}
</query-construct>

View file

@ -10,6 +10,7 @@
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
SELECT DISTINCT <collated> ?subclass </collated>
?localName
@ -33,7 +34,7 @@
OPTIONAL { ?degree core:abbreviation ?degreeAbbr }
}
<collated>
OPTIONAL { ?training a ?subclass .
OPTIONAL { ?training vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:EducationalTraining
}
</collated>
@ -57,10 +58,15 @@
<query-construct>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?subject ?property ?training .
?training vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:EducationalTraining
} WHERE {
?subject ?property ?training .
?training vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:EducationalTraining
}
</query-construct>

View file

@ -8,6 +8,7 @@
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
SELECT DISTINCT <collated>?subclass</collated>
?position
@ -30,7 +31,7 @@
}
}
<collated>
OPTIONAL { ?position a ?subclass .
OPTIONAL { ?position vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:Position
}
</collated>
@ -42,10 +43,15 @@
<query-construct>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?subject ?property ?position .
?position vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:Position
} WHERE {
?subject ?property ?position .
?position vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:Position
}
</query-construct>

View file

@ -11,6 +11,7 @@
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
SELECT DISTINCT <collated>?subclass</collated>
# send the property to the template, since this view supports multiple role properties
@ -27,7 +28,7 @@
# We need ?subclass in the uncollated query to get the roleTypeLabel
# for roles that have no label (e.g., InvestigatorRole and its subclasses).
OPTIONAL { ?role a ?subclass .
OPTIONAL { ?role vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:Role
OPTIONAL { ?subclass rdfs:label ?roleTypeLabel }
?roleProp rdfs:subPropertyOf core:roleOf ;
@ -66,10 +67,12 @@
<query-construct>
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
CONSTRUCT {
?subject ?property ?role .
?role ?roleProperty ?roleValue .
?role vitro:mostSpecificType ?subclass .
?subclass rdfs:label ?roleTypeLabel .
?indivInRole rdfs:label ?indivLabel
} WHERE {
@ -77,10 +80,10 @@
?subject ?property ?role
} UNION {
?subject ?property ?role .
?role ?roleProperty ?roleValue .
?role ?roleProperty ?roleValue
} UNION {
?subject ?property ?role .
?role a ?subclass .
?role vitro:mostSpecificType ?subclass
} UNION {
?subject ?property ?role .
?role a ?subclass .