sparql

What URI to use for a Sesame repository while executing a SPARQL ADD query

空扰寡人 提交于 2020-01-06 13:13:56
问题 I'm trying to copy the data from a Sesame repository to another triplestore. I tried the following query: ADD <http://my.ip.ad.here:8080/openrdf-workbench/repositories/rep_name> TO <http://dydra.com/username/rep_name> The query gets executed with output as 'true' but no triples are added. So, I tried a similar query to see if I can move data from one Sesame repository to another using SPARQL Update: ADD <http://my.ip.ad.here:8080/openrdf-workbench/repositories/source_rep> TO <http://my.ip.ad

What URI to use for a Sesame repository while executing a SPARQL ADD query

有些话、适合烂在心里 提交于 2020-01-06 13:10:11
问题 I'm trying to copy the data from a Sesame repository to another triplestore. I tried the following query: ADD <http://my.ip.ad.here:8080/openrdf-workbench/repositories/rep_name> TO <http://dydra.com/username/rep_name> The query gets executed with output as 'true' but no triples are added. So, I tried a similar query to see if I can move data from one Sesame repository to another using SPARQL Update: ADD <http://my.ip.ad.here:8080/openrdf-workbench/repositories/source_rep> TO <http://my.ip.ad

bug or wrong way for VALUES in SPARQL, OpenLink Virtuoso?

和自甴很熟 提交于 2020-01-06 12:41:47
问题 I have Virtuoso 7.10 and command VALUES works for 1*x or x*1 asign to tables like: SELECT * WHERE { VALUES (?z ?r ?t) { ("x" "y" "z") } } and for: SELECT * WHERE { VALUES ?z { "x" "y" "z" } } But the problem is when i try to assign like this: SELECT * WHERE { VALUES (?z ?r ?t) { ("x" "y" "z") ("xy" "yx" "zx") } } then in result, i have only first column filled, but other two are empty (same as with two column). Is it a bug or am I doing something wrong? Is there a workaround? 来源: https:/

bug or wrong way for VALUES in SPARQL, OpenLink Virtuoso?

廉价感情. 提交于 2020-01-06 12:40:20
问题 I have Virtuoso 7.10 and command VALUES works for 1*x or x*1 asign to tables like: SELECT * WHERE { VALUES (?z ?r ?t) { ("x" "y" "z") } } and for: SELECT * WHERE { VALUES ?z { "x" "y" "z" } } But the problem is when i try to assign like this: SELECT * WHERE { VALUES (?z ?r ?t) { ("x" "y" "z") ("xy" "yx" "zx") } } then in result, i have only first column filled, but other two are empty (same as with two column). Is it a bug or am I doing something wrong? Is there a workaround? 来源: https:/

selecting limited subquery data with SPARQL 1.1

岁酱吖の 提交于 2020-01-06 09:47:02
问题 I'm trying to get something done, but I got performance issues. I got stores, and products. The products are linked to the stores via :inStore predicate. The main purpose here is to get 5 products from each matched store with total limit of 75 products. The order should be the closest ?distance and the highest ?price. Here's my query: SELECT ?store ?productID ?distance ?price { { SELECT ?store ?distance { ?store omgeo:nearby(51.5125591000 -0.1248754000 '100km') . ?store geo-pos:lat ?latBase .

selecting limited subquery data with SPARQL 1.1

你离开我真会死。 提交于 2020-01-06 09:41:51
问题 I'm trying to get something done, but I got performance issues. I got stores, and products. The products are linked to the stores via :inStore predicate. The main purpose here is to get 5 products from each matched store with total limit of 75 products. The order should be the closest ?distance and the highest ?price. Here's my query: SELECT ?store ?productID ?distance ?price { { SELECT ?store ?distance { ?store omgeo:nearby(51.5125591000 -0.1248754000 '100km') . ?store geo-pos:lat ?latBase .

Difference between one SPARQL (working) query and another one (not working)

若如初见. 提交于 2020-01-06 08:16:05
问题 I want to get the scorers ( marcatori ) from this page: http://it.dbpedia.org/resource/Modena_Football_Club_1962-1963 using this SPARQL endpoint: http://uriburner.com/sparql/ If I use this query: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT ?team ?club (group_concat(distinct ?scorer;separator=";;;") as ?scorers) WHERE { SERVICE <http://it.dbpedia.org/sparql/> { ?value rdfs:label "Campionato italiano di calcio Serie A"@it . ?year <http://purl.org/dc/terms/subject>

Construct RDF graph on federated query?

雨燕双飞 提交于 2020-01-06 07:27:27
问题 I'm new to SPARQL and RDF. Bascially I have to design federated SPARQL 1.1 query over Wikidata and Dbpedia. Here's my simple query. This will select the films starring Leonardo Di Caprio. PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?film WHERE { { SELECT ?film WHERE { ?film wdt:P161 wd:Q38111.

BIND values from Documents to a SPARQL Variable (MarkLogic)

杀马特。学长 韩版系。学妹 提交于 2020-01-06 07:01:26
问题 I am currently trying to see if it's possible to extract a certain value from a document and bind it to a variable in SPARQL For example if i have such a document in MarkLogic. /person/John <person_data> <name>John</name> <age>25</age> </person_data> using this data I attempted various ways to bind it such as using XPath in sem:sparql as shown below xquery version "1.0-ml"; import module namespace sem = "http://marklogic.com/semantics" at "/MarkLogic/semantics.xqy"; sem:sparql(' PREFIX fn :

BIND values from Documents to a SPARQL Variable (MarkLogic)

跟風遠走 提交于 2020-01-06 07:01:10
问题 I am currently trying to see if it's possible to extract a certain value from a document and bind it to a variable in SPARQL For example if i have such a document in MarkLogic. /person/John <person_data> <name>John</name> <age>25</age> </person_data> using this data I attempted various ways to bind it such as using XPath in sem:sparql as shown below xquery version "1.0-ml"; import module namespace sem = "http://marklogic.com/semantics" at "/MarkLogic/semantics.xqy"; sem:sparql(' PREFIX fn :