Skip to content

Commit

Permalink
Merge pull request #1 from CunliangGeng/refine4cloud
Browse files Browse the repository at this point in the history
add DISTINCT to make output unique
  • Loading branch information
CunliangGeng authored Sep 30, 2020
2 parents 543d863 + 3265408 commit 8ab5457
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sparql/find_text.rq
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#PREFIX bif: <http://www.openlinksw.com/schemas/bif#> # for Virtuoso

SELECT ?s ?p ?o
SELECT DISTINCT ?s ?p ?o
WHERE {
?s ?p ?o .
?o <bif:contains> ?_text .
Expand Down
2 changes: 1 addition & 1 deletion sparql/find_uri.rq
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#PREFIX bif: <http://www.openlinksw.com/schemas/bif#> # for Virtuoso

SELECT ?s ?p (?_uri_iri AS ?URI)
SELECT DISTINCT ?s ?p (?_uri_iri AS ?URI)
WHERE {
?s ?p ?_uri_iri .
}
2 changes: 1 addition & 1 deletion sparql/get_children_ids.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX r3d: <http://www.re3data.org/schema/3-0#>
#PREFIX bif: <http://www.openlinksw.com/schemas/bif#> # for Virtuoso

SELECT (?o AS ?ChildrenID)
SELECT DISTINCT (?o AS ?ChildrenID)
WHERE {
{ ?_id_iri r3d:dataCatalog ?o . }
UNION
Expand Down

0 comments on commit 8ab5457

Please sign in to comment.