list view update

This commit is contained in:
tworrall 2014-05-22 13:52:51 -04:00
parent 8cfaaa25c7
commit d33e48114f

View file

@ -10,22 +10,16 @@
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
SELECT DISTINCT ?degree
SELECT DISTINCT ?awardedDegree
?degree
?degreeName
?degreeAbbr
WHERE {
?subject ?property ?edProcess .
?edProcess a core:EducationalProcess
OPTIONAL { ?edProcess <http://purl.obolibrary.org/obo/RO_0002234> ?awardedDegree .
?subject ?property ?awardedDegree .
?awardedDegree core:relates ?degree .
?degree a core:AcademicDegree .
?degree rdfs:label ?degreeName
}
OPTIONAL { ?edProcess <http://purl.obolibrary.org/obo/RO_0002234> ?awardedDegree .
?awardedDegree core:relates ?degree .
?degree a core:AcademicDegree .
?degree core:abbreviation ?degreeAbbr
}
OPTIONAL { ?degree core:abbreviation ?degreeAbbr }
}
</query-select>
@ -34,21 +28,20 @@
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
CONSTRUCT {
?degree a core:AcademicDegree .
?subject ?property ?awardedDegree .
?awardedDegree core:relates ?degree .
?degree rdfs:label ?degreeName .
?degree core:abbreviation ?degreeAbbr
} WHERE {
{
?subject ?property ?edProcess .
?edProcess a core:EducationalProcess .
?edProcess &lt;http://purl.obolibrary.org/obo/RO_0002234&gt; ?awardedDegree .
?subject ?property ?awardedDegree .
?awardedDegree a core:AwardedDegree .
?awardedDegree core:relates ?degree .
?degree a core:AcademicDegree .
?degree rdfs:label ?degreeName
} UNION {
?subject ?property ?edProcess .
?edProcess a core:EducationalProcess .
?edProcess &lt;http://purl.obolibrary.org/obo/RO_0002234&gt; ?awardedDegree .
?subject ?property ?awardedDegree .
?awardedDegree a core:AwardedDegree .
?awardedDegree core:relates ?degree .
?degree a core:AcademicDegree .
?degree core:abbreviation ?degreeAbbr