From ea0b5848d6b7e508bdeef63e1dd84467211788ff Mon Sep 17 00:00:00 2001 From: Ghislain Date: Fri, 12 Feb 2016 17:46:33 +0100 Subject: [PATCH] added the named graph in the query --- tools/lov-mappings.sparql | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/lov-mappings.sparql b/tools/lov-mappings.sparql index cadfaca..61b36ab 100644 --- a/tools/lov-mappings.sparql +++ b/tools/lov-mappings.sparql @@ -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: SELECT ?prefix ?URI FROM { - SERVICE { - SELECT ?prefix ?URI { - [] vann:preferredNamespacePrefix ?prefix; - vann:preferredNamespaceUri ?URI; + SERVICE { + SELECT DISTINCT ?prefix ?URI { + GRAPH { + [] vann:preferredNamespacePrefix ?prefix; + vann:preferredNamespaceUri ?URI. + } + } } FILTER(NOT EXISTS { [] vann:preferredNamespaceUri ?URI })