fuseki

Matching attribute sets using SPARQL

烈酒焚心 提交于 2021-02-10 18:44:38
问题 This question is about finding matching candidate and path using a triple store with SPARQL endpoint (Fuseki 3.8.0). The matching criteria is that the attribute 's of a candidate must contain all of the requires of a path . In the minimal example data below, the matches should be candi_1 with path_1 and candi_2 with path_2 . @prefix : <http://example.com/app#> . :candi_1 a :candidate ; :attribute "A", "B", "C" . :candi_2 a :candidate ; :attribute "C", "D" . :candi_3 a :candidate ; :attribute

How can i get the Fuseki API via SPARQLWrapper to properly report a detailed error message?

南楼画角 提交于 2021-01-29 05:40:49
问题 As outlined:in https://github.com/WolfgangFahl/DgraphAndWeaviateTest/blob/master/storage/sparql.py and https://github.com/WolfgangFahl/DgraphAndWeaviateTest/blob/master/tests/testSPARQL.py I tried to allow for a "round trip" operation between python list of dicts and Jena/SPARQL based storage. The approach performs very well for my usecase and after trying it out for a while i get into more details that need to be addressed. The stackoverflow question listOfDict to RDF conversion in python

fuseki Multiple services found exception

妖精的绣舞 提交于 2021-01-29 04:17:21
问题 I was using this config and it is working @prefix : <#> . @prefix fuseki: <http://jena.apache.org/fuseki#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . [] rdf:type fuseki:Server ; fuseki:services ( <#serviceTDBwithReasoner> # <#serviceInMemoryWithReasoner> ) . # TDB tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .

fuseki Multiple services found exception

南笙酒味 提交于 2021-01-29 04:08:00
问题 I was using this config and it is working @prefix : <#> . @prefix fuseki: <http://jena.apache.org/fuseki#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . [] rdf:type fuseki:Server ; fuseki:services ( <#serviceTDBwithReasoner> # <#serviceInMemoryWithReasoner> ) . # TDB tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .

URLError with SPARQLWrapper at sparql.query().convert()

和自甴很熟 提交于 2021-01-28 00:21:16
问题 I try a small python script to test my SPARQL request. However, just the next simple code doesn't work. from SPARQLWrapper import SPARQLWrapper, JSON import rdflib #connect to the sparql point sparql = SPARQLWrapper("http://localhost:3030/sparql") #SPARQL request sparql.setQuery(""" PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX

moving a rdf ordered list from a graph to another with sparql

只愿长相守 提交于 2021-01-27 19:01:38
问题 I have a list in a rdf knowledge graph in a Fuseki dataset. I can get the elements of the list with something like select ?webpage where { graph <http://datamusee.givingsense.eu/graph/webtracks> { ?track <http://erlangen-crm.org/current/P16_used_specific_object> ?content. ?content rdf:rest*/rdf:first ?webpage . } } but I would like to copy the list from the webtracks graph to another graph I doen't find how to do it either with an insert or by exporting the data with a construct and then

SPARQL Queries with Fuseki Server on Ubuntu 18.04

雨燕双飞 提交于 2020-07-03 12:01:28
问题 I'm trying to run SPARQL queries with Fuseki Server on Ubuntu 18.04. When I try to start the server in the terminal with ./fuseki-server --update --mem /ds , I get the following errors. I've seen some similar questions and I assume it has something to do with compatibility issues with Java 11. I've installed Java 8, and I still get the same errors. I'm not sure how to proceed from here. WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. 2020-06-18

SPARQL Queries with Fuseki Server on Ubuntu 18.04

别来无恙 提交于 2020-07-03 12:01:24
问题 I'm trying to run SPARQL queries with Fuseki Server on Ubuntu 18.04. When I try to start the server in the terminal with ./fuseki-server --update --mem /ds , I get the following errors. I've seen some similar questions and I assume it has something to do with compatibility issues with Java 11. I've installed Java 8, and I still get the same errors. I'm not sure how to proceed from here. WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. 2020-06-18