Created
June 28, 2016 20:59
-
-
Save ashepherd/3c3da75efcca38974d962841e669e721 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 ?target | |
WHERE { | |
?cruise a gl:Cruise . | |
?x gl:hasCruise ?cruise . | |
?x a gl:PhysicalSample . | |
{ ?cruise owl:sameAs ?target . } | |
UNION { ?target owl:sameAs ?cruise . } | |
UNION { ?target owl:sameAs ?match . ?match owl:sameAs ?cruise . } | |
UNION { ?target owl:sameAs ?match . ?cruise owl:sameAs ?match . } | |
FILTER (REGEX(str(?target), 'http://lod.bco-dmo.org/geolink', 'i')) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment