VIVO-112: more changes for role related forms and addAuthorToPub

This commit is contained in:
tworrall 2013-08-29 12:35:35 -04:00
parent 59431742e1
commit cae4fe03c1
4 changed files with 27 additions and 21 deletions

View file

@ -82,7 +82,7 @@
{
?subject ?property ?role .
?role a ?objectType .
?role <http://purl.obolibrary.org/obo/BFO_0000054>n ?activity .
?role <http://purl.obolibrary.org/obo/BFO_0000054> ?activity .
?activity rdfs:label ?activityLabel
}
}

View file

@ -22,7 +22,8 @@
?objectType
WHERE {
?subject ?property ?role .
?role a ?objectType
?role a ?objectType .
?role vitro:mostSpecificType ?roleSubclass
OPTIONAL { ?role <http://purl.obolibrary.org/obo/BFO_0000054> ?activity
LET (?activityName := afn:localname(?activity))
@ -53,9 +54,7 @@
}
}
# NOT EXISTS { ?role core:hideFromDisplay ?hideThis }
<critical-data-required>
FILTER ( bound(?activity) )
</critical-data-required>
FILTER ( bound(?activity) &amp;&amp; ?objectType = ?roleSubclass )
} ORDER BY <collated>?subclass</collated> DESC(?dateTimeEnd) DESC(?dateTimeStart) ?activityLabel ?activityName
</query-select>

View file

@ -13,11 +13,13 @@
SELECT DISTINCT <collated> ?subclass </collated>
?authorship
?person ?personName WHERE {
?subject ?property ?authorship .
?subject a core:Authorship
OPTIONAL { ?authorship core:authorRank ?rank }
OPTIONAL { ?authorship core:relates ?person .
?person ?personName
WHERE {
?subject ?property ?authorship .
?authorship a core:Authorship
OPTIONAL { ?authorship core:authorRank ?rank }
OPTIONAL { ?authorship core:relates ?person .
?person a foaf:Person .
?person rdfs:label ?personName
<collated>
OPTIONAL { ?person vitro:mostSpecificType ?subclass .
@ -44,10 +46,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 vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
PREFIX vitro: &lt;http://vitro.mannlib.cornell.edu/ns/vitro/0.7#&gt;
PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt;
CONSTRUCT {
?subject ?property ?authorship .
?authorship ?authorshipProperty ?authorshipValue .
?authorship core:relates ?person .
?person a foaf:Person .
?person rdfs:label ?personName .
?person vitro:mostSpecificType ?subclass
} WHERE {
@ -58,11 +63,13 @@
?authorship ?authorshipProperty ?authorshipValue
} UNION {
?subject ?property ?authorship .
?authorship core:relates ?person .
?authorship core:relates ?person .
?person a foaf:Person .
?person rdfs:label ?personName
} UNION {
?subject ?property ?authorship .
?authorship core:relates ?person .
?authorship core:relates ?person .
?person a foaf:Person .
?person rdfs:label ?personName .
?person vitro:mostSpecificType ?subclass
}