fix for sparql issues found during testing with Digital Vita team

This commit is contained in:
stellamit 2011-08-15 16:38:40 +00:00
parent 606ade5b31
commit 9a67388f6a
11 changed files with 86 additions and 15 deletions

View file

@ -0,0 +1,11 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
CONSTRUCT {
?degree ?property ?object
} WHERE {
PERSON_URI core:advisorIn ?advisingRelationship .
?advisingRelationship core:advisee ?advisee .
?advisee core:educationalTraining ?educationalTraining .
?educationalTraining core:degreeEarned ?degree .
?degree ?property ?object
}

View file

@ -0,0 +1,12 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
CONSTRUCT {
?dateTimeValue ?property ?object .
} WHERE {
PERSON_URI core:advisorIn ?advisingRelationship .
?advisingRelationship core:advisee ?advisee .
?advisee core:educationalTraining ?educationalTraining .
?educationalTraining core:dateTimeInterval ?dateTimeInterval .
?dateTimeInterval core:end ?dateTimeValue .
?dateTimeValue ?property ?object .
}

View file

@ -0,0 +1,12 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
CONSTRUCT {
?educationalInstitution rdfs:label ?label
} WHERE {
PERSON_URI core:advisorIn ?advisingRelationship .
?advisingRelationship core:advisee ?advisee .
?advisee core:educationalTraining ?educationalTraining .
?educationalTraining core:trainingAtOrganization ?educationalInstitution .
?educationalInstitution rdfs:label ?label
}

View file

@ -0,0 +1,10 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
CONSTRUCT {
?educationalTraining ?property ?object .
} WHERE {
PERSON_URI core:advisorIn ?advisingRelationship .
?advisingRelationship core:advisee ?advisee .
?advisee core:educationalTraining ?educationalTraining .
?educationalTraining ?property ?object .
}

View file

@ -1,6 +1,7 @@
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX core: <http://vivoweb.org/ontology/core#>
CONSTRUCT { CONSTRUCT {
?dateTimeInterval core:end ?date .
?date ?property ?object . ?date ?property ?object .
} WHERE { } WHERE {
PERSON_URI core:educationalTraining ?educationalTraining . PERSON_URI core:educationalTraining ?educationalTraining .

View file

@ -0,0 +1,17 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
CONSTRUCT {
?awardingOrganization ?p ?o
} WHERE {
{
{PERSON_URI core:hasPrincipalInvestigatorRole ?investigatorRole }
union
{PERSON_URI core:hasCo-PrincipalInvestigatorRole ?investigatorRole }
}
?investigatorRole core:roleIn ?grant .
?grant a core:Grant .
?grant core:grantAwardedBy ?awardingOrganization .
?awardingOrganization ?p ?o
}

View file

@ -0,0 +1,12 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
CONSTRUCT {
?location rdfs:label ?locationName .
} WHERE {
PERSON_URI core:hasPresenterRole ?presenterRole .
?presenterRole core:roleIn ?presentation .
?presentation core:eventWithin ?containingEvent .
?containingEvent core:hasGeographicLocation ?location .
?location rdfs:label ?locationName .
}

View file

@ -1,4 +1,5 @@
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
CONSTRUCT { CONSTRUCT {
?containingEvent rdfs:label ?containingEventName ?containingEvent rdfs:label ?containingEventName

View file

@ -1,10 +0,0 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
CONSTRUCT {
?location ?rdfs:label ?locationName .
} WHERE {
PERSON_URI core:hasPresenterRole ?presenterRole .
?presenterRole core:roleIn ?presentation .
?presentation core:hasGeographicLocation ?location .
?location ?rdfs:label ?locationName .
}

View file

@ -1,9 +1,13 @@
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX core: <http://vivoweb.org/ontology/core#>
CONSTRUCT { CONSTRUCT {
?person ?property ?object . ?coAuthorship ?property1 ?object1 .
?person ?property2 ?object2 .
} WHERE { } WHERE {
PERSON_URI core:authorInAuthorship ?authorship . PERSON_URI core:authorInAuthorship ?authorship .
?authorship core:linkedAuthor ?person . ?authorship core:linkedInformationResource ?publication .
?person ?property ?object . ?publication core:informationResourceInAuthorship ?coAuthorship .
?coAuthorship ?property1 ?object1 .
?coAuthorship core:linkedAuthor ?person .
?person ?property2 ?object2 .
} }

View file

@ -1,12 +1,13 @@
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX bibo: <http://purl.org/ontology/bibo/> PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
CONSTRUCT { CONSTRUCT {
?location ?property ?object . ?location rdfs:label ?locationName .
} WHERE { } WHERE {
PERSON_URI core:authorInAuthorship ?authorship . PERSON_URI core:authorInAuthorship ?authorship .
?authorship core:linkedInformationResource ?publication . ?authorship core:linkedInformationResource ?publication .
?publication bibo:presentedAt ?event . ?publication bibo:presentedAt ?event .
?event core:hasGeographicLocation ?location . ?event core:hasGeographicLocation ?location .
?location ?property ?object . ?location rdfs:label ?locationName .
} }