Created
June 23, 2016 16:31
-
-
Save ashepherd/cc4ea69def1ab6bba447663e3b1a1ca5 to your computer and use it in GitHub Desktop.
Need to get working w. <http://data.geolink.org/id/person/da6fb049-979a-41f1-8068-5f8b8661aa8c> (Rick Murray)
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 ?sample ?match ?id_value ?id_scheme ?id_uri ?material ?material_type | |
WHERE { | |
{ | |
?sample a gl:PhysicalSample . | |
?person ?role ?sample . | |
{ | |
SELECT DISTINCT ?person | |
WHERE { | |
{ | |
?person a gl:Person . | |
?person owl:sameAs <http://host.geolink.org/sesar/id/person/baed6fa0-f800-4314-91ee-90bc2044e31e> . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://host.geolink.org/sesar/id/person/baed6fa0-f800-4314-91ee-90bc2044e31e> owl:sameAs ?person . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://host.geolink.org/sesar/id/person/baed6fa0-f800-4314-91ee-90bc2044e31e> owl:sameAs ?match . | |
?match owl:sameAs ?person . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://host.geolink.org/sesar/id/person/baed6fa0-f800-4314-91ee-90bc2044e31e> owl:sameAs ?match . | |
?person owl:sameAs ?match . | |
} | |
UNION { | |
?person a gl:Person . | |
FILTER (?person = <http://host.geolink.org/sesar/id/person/baed6fa0-f800-4314-91ee-90bc2044e31e>) | |
} | |
} | |
} | |
} UNION { | |
?sample a gl:PhysicalSample . | |
?sample ?role ?person . | |
{ | |
SELECT DISTINCT ?person | |
WHERE { | |
{ | |
?person a gl:Person . | |
?person owl:sameAs <http://host.geolink.org/sesar/id/person/baed6fa0-f800-4314-91ee-90bc2044e31e> . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://host.geolink.org/sesar/id/person/baed6fa0-f800-4314-91ee-90bc2044e31e> owl:sameAs ?person . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://host.geolink.org/sesar/id/person/baed6fa0-f800-4314-91ee-90bc2044e31e> owl:sameAs ?match . | |
?match owl:sameAs ?person . | |
} | |
UNION { | |
?person a gl:Person . | |
<http://host.geolink.org/sesar/id/person/baed6fa0-f800-4314-91ee-90bc2044e31e> owl:sameAs ?match . | |
?person owl:sameAs ?match . | |
} | |
UNION { | |
?person a gl:Person . | |
FILTER (?person = <http://host.geolink.org/sesar/id/person/baed6fa0-f800-4314-91ee-90bc2044e31e>) | |
} | |
} | |
} | |
} | |
OPTIONAL { | |
?sample gl:hasIdentifier ?identifier . | |
?identifier gl:hasIdentifierValue ?id_value . | |
OPTIONAL { | |
?identifier gl:hasIdentifierScheme ?id_scheme . | |
} | |
OPTIONAL { | |
?identifier gl:hasIdentifierResolveURI ?id_uri . | |
} | |
} | |
OPTIONAL { | |
?sample owl:sameAs ?match . | |
?match a gl:PhysicalSample . | |
} | |
OPTIONAL { | |
?sample gl:hasTitle ?title . | |
} | |
OPTIONAL { | |
?sample gl:hasMaterial ?material . | |
} | |
OPTIONAL { | |
?sample gl:hasMaterialType ?material_type . | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment