Created
August 13, 2014 18:29
-
-
Save blankdots/58282d6e90c963d40e38 to your computer and use it in GitHub Desktop.
sparql queries
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
http://sparqles.okfn.org/availability | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX uni: <http://www.Department0.University0.edu/> | |
PREFIX ub: <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#> | |
SELECT * | |
WHERE { ?subject ?predicate ?object } | |
ORDER BY ?subject | |
LIMIT 100 | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX uni: <http://www.Department0.University0.edu/> | |
PREFIX ub: <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#> | |
SELECT DISTINCT ?s ?o | |
WHERE { ?s ub:takesCourse ?o } | |
ORDER BY ?s | |
LIMIT 100 | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX uni: <http://www.Department0.University0.edu/> | |
PREFIX ub: <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#> | |
SELECT DISTINCT ?p ?o | |
WHERE { uni:GraduateStudent0 ?p ?o } | |
ORDER BY ?s | |
LIMIT 100 | |
select distinct ?author ?firstname ?lastname | |
where { | |
?author foaf:firstName ?firstname. | |
?author foaf:lastName ?lastname. | |
} | |
prefix frbr: <http://purl.org/vocab/frbr/core#> | |
prefix co: <http://purl.org/co/> | |
select distinct ?s ?author ?name ?author2 | |
where { | |
?s co:item ?author. | |
?author co:itemContent ?author2. | |
?author2 foaf:firstName ?name. | |
} | |
prefix frbr: <http://purl.org/vocab/frbr/core#> | |
prefix co: <http://purl.org/co/> | |
select distinct ?title ?first ?last | |
where { | |
?paper frbr:creator ?creators; | |
frbr:realization ?papercontent. | |
?papercontent dcterms:title ?title. | |
?creators co:item ?author. | |
?author co:itemContent ?author2. | |
?author2 foaf:firstName ?first. | |
foaf:lastName ?last. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment