Last active
June 23, 2016 19:21
-
-
Save ashepherd/1e99113f2dab5f98f4e44c58f353b254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX gl: <http://schema.geolink.org/1.0/base/main#> | |
SELECT DISTINCT ?person ?role ?cruise ?match ?cruise_type ?cruise_title ?project ?id_value ?id_scheme ?id_uri | |
#?abstract ?cruise_track | |
WHERE { | |
{ | |
?cruise a gl:Cruise . | |
?person ?role ?cruise . | |
{ | |
SELECT DISTINCT ?person | |
WHERE { | |
{ | |
?person a gl:Person . | |
?person owl:sameAs <http://data.rvdata.us/id/person/109399> . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://data.rvdata.us/id/person/109399> owl:sameAs ?person . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://data.rvdata.us/id/person/109399> owl:sameAs ?match . | |
?match owl:sameAs ?person . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://data.rvdata.us/id/person/109399> owl:sameAs ?match . | |
?person owl:sameAs ?match . | |
} | |
UNION { | |
?person a gl:Person . | |
FILTER (?person = <http://data.rvdata.us/id/person/109399>) | |
} | |
} | |
} | |
} UNION { | |
?cruise a gl:Cruise . | |
?cruise ?role ?person . | |
{ | |
SELECT DISTINCT ?person | |
WHERE { | |
{ | |
?person a gl:Person . | |
?person owl:sameAs <http://data.rvdata.us/id/person/109399> . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://data.rvdata.us/id/person/109399> owl:sameAs ?person . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://data.rvdata.us/id/person/109399> owl:sameAs ?match . | |
?match owl:sameAs ?person . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://data.rvdata.us/id/person/109399> owl:sameAs ?match . | |
?person owl:sameAs ?match . | |
} | |
UNION { | |
?person a gl:Person . | |
FILTER (?person = <http://data.rvdata.us/id/person/109399>) | |
} | |
} | |
} | |
} | |
FILTER (regex(str(?role), 'http://schema.geolink.org/1.0/base/main#','i')) | |
OPTIONAL { | |
?cruise gl:hasIdentifier ?identifier . | |
?identifier gl:hasIdentifierValue ?id_value . | |
OPTIONAL { | |
?identifier gl:hasIdentifierScheme ?id_scheme . | |
} | |
OPTIONAL { | |
?identifier gl:hasIdentifierResolveURI ?id_uri . | |
} | |
} | |
OPTIONAL { | |
?cruise gl:hasTitle ?cruise_title . | |
} | |
OPTIONAL { | |
?cruise gl:hasProject ?project . | |
} | |
OPTIONAL { | |
?cruise gl:hasTrack ?cruise_track . | |
} | |
OPTIONAL { | |
?cruise gl:hasCruiseType ?cruise_type . | |
} | |
OPTIONAL { | |
?cruise gl:hasAbstract ?abstract . | |
} | |
OPTIONAL { | |
?cruise owl:sameAs ?match . | |
?match a gl:Cruise . | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment