Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cygri committed Mar 17, 2016
2 parents fc5ba5d + 3b22bdd commit abe782e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tools/lov-mappings.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
# in prefix.cc, and the prefix is unassigned in prefix.cc.
# Run with Jena: sparql --query lov-mappings.sparql --results csv > out.csv
# Then import with csv-import.php
# [update] Added the named graph in the query with the version 3 of LOV

PREFIX vann: <http://purl.org/vocab/vann/>
SELECT ?prefix ?URI
FROM <http://prefix.cc/popular/all.file.vann> {
SERVICE <http://lov.okfn.org/endpoint/lov> {
SELECT ?prefix ?URI {
[] vann:preferredNamespacePrefix ?prefix;
vann:preferredNamespaceUri ?URI;
SERVICE <http://lov.okfn.org/dataset/lov/sparql> {
SELECT DISTINCT ?prefix ?URI {
GRAPH <http://lov.okfn.org/dataset/lov> {
[] vann:preferredNamespacePrefix ?prefix;
vann:preferredNamespaceUri ?URI.
}

}
}
FILTER(NOT EXISTS { [] vann:preferredNamespaceUri ?URI })
Expand Down

0 comments on commit abe782e

Please sign in to comment.