NIHVIVO-3457 update rich export sparql queries for 1.4 ontology role property changes

This commit is contained in:
stellamit 2011-12-08 19:41:26 +00:00
parent 1aa4d82c5a
commit 43bed0719c
8 changed files with 22 additions and 8 deletions

View file

@ -10,7 +10,7 @@ CONSTRUCT {
{PERSON_URI core:hasCo-PrincipalInvestigatorRole ?investigatorRole } {PERSON_URI core:hasCo-PrincipalInvestigatorRole ?investigatorRole }
} }
?investigatorRole core:roleIn ?grant . ?investigatorRole core:roleContributesTo ?grant .
?grant a core:Grant . ?grant a core:Grant .
?grant core:grantAwardedBy ?awardingOrganization . ?grant core:grantAwardedBy ?awardingOrganization .
?awardingOrganization ?p ?o ?awardingOrganization ?p ?o

View file

@ -10,7 +10,7 @@ CONSTRUCT {
{PERSON_URI core:hasCo-PrincipalInvestigatorRole ?investigatorRole } {PERSON_URI core:hasCo-PrincipalInvestigatorRole ?investigatorRole }
} }
?investigatorRole core:roleIn ?grant . ?investigatorRole core:roleContributesTo ?grant .
?grant a core:Grant . ?grant a core:Grant .
?grant ?property ?object ?grant ?property ?object
} }

View file

@ -4,6 +4,12 @@ CONSTRUCT {
?endeavor ?property ?object . ?endeavor ?property ?object .
} WHERE { } WHERE {
PERSON_URI core:hasMemberRole ?memberRole . PERSON_URI core:hasMemberRole ?memberRole .
?memberRole core:roleIn ?endeavor .
{
{?memberRole core:roleRealizedIn ?endeavor }
union
{?memberRole core:roleContributesTo ?endeavor }
}
?endeavor ?property ?object . ?endeavor ?property ?object .
} }

View file

@ -4,6 +4,12 @@ CONSTRUCT {
?endeavor ?property ?object . ?endeavor ?property ?object .
} WHERE { } WHERE {
PERSON_URI core:hasOutreachProviderRole ?outreachRole . PERSON_URI core:hasOutreachProviderRole ?outreachRole .
?outreachRole core:roleIn ?endeavor .
{
{ ?memberRole core:roleRealizedIn ?endeavor }
union
{ ?memberRole core:roleContributesTo ?endeavor }
}
?endeavor ?property ?object . ?endeavor ?property ?object .
} }

View file

@ -5,7 +5,7 @@ CONSTRUCT {
?location rdfs:label ?locationName . ?location rdfs:label ?locationName .
} WHERE { } WHERE {
PERSON_URI core:hasPresenterRole ?presenterRole . PERSON_URI core:hasPresenterRole ?presenterRole .
?presenterRole core:roleIn ?presentation . ?presenterRole core:roleRealizedIn ?presentation .
?presentation core:eventWithin ?containingEvent . ?presentation core:eventWithin ?containingEvent .
?containingEvent core:hasGeographicLocation ?location . ?containingEvent core:hasGeographicLocation ?location .
?location rdfs:label ?locationName . ?location rdfs:label ?locationName .

View file

@ -5,7 +5,7 @@ CONSTRUCT {
?containingEvent rdfs:label ?containingEventName ?containingEvent rdfs:label ?containingEventName
} WHERE { } WHERE {
PERSON_URI core:hasPresenterRole ?presenterRole . PERSON_URI core:hasPresenterRole ?presenterRole .
?presenterRole core:roleIn ?presentation . ?presenterRole core:roleRealizedIn ?presentation .
?presentation core:eventWithin ?containingEvent . ?presentation core:eventWithin ?containingEvent .
?containingEvent rdfs:label ?containingEventName ?containingEvent rdfs:label ?containingEventName
} }

View file

@ -4,6 +4,8 @@ CONSTRUCT {
?presentation ?property ?object . ?presentation ?property ?object .
} WHERE { } WHERE {
PERSON_URI core:hasPresenterRole ?presenterRole . PERSON_URI core:hasPresenterRole ?presenterRole .
?presenterRole core:roleIn ?presentation .
?presenterRole core:roleRealizedIn ?presentation .
?presentation ?property ?object . ?presentation ?property ?object .
} }

View file

@ -4,6 +4,6 @@ CONSTRUCT {
?course ?property ?object . ?course ?property ?object .
} WHERE { } WHERE {
PERSON_URI core:hasTeacherRole ?teacherRole . PERSON_URI core:hasTeacherRole ?teacherRole .
?teacherRole core:roleIn ?course . ?teacherRole core:roleRealizedIn ?course .
?course ?property ?object . ?course ?property ?object .
} }