NIHVIVO-2725: replaced rdf:type statements with vitro:mostSpecificType
This commit is contained in:
parent
ffc5f98325
commit
2159c4ae6a
9 changed files with 67 additions and 34 deletions
|
@ -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: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
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>
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
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: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
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>
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
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: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
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: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
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>
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
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: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
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>
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
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: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
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>
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
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: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
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>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
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: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
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 .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue