fuseki

SPARQL Query Error with OPTION(TRANSITIVE) on Jena

人盡茶涼 提交于 2019-12-10 11:03:17
问题 I have the following Query PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?type WHERE { { SELECT * WHERE { ?x rdfs:subClassOf ?type . } } OPTION (TRANSITIVE, t_distinct, t_in (?x), t_out (?type) ) . FILTER (?x = <http://dbpedia.org/ontology/Hospital>) } It works fine when i send it to Virtuoso endpoint but does not work on my Jena instance. In specific i get the following error: INFO [1] 400 Parse error: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?type WHERE { {

Fuseki config for 2 datasets + text index : how to use turtle files?

…衆ロ難τιáo~ 提交于 2019-12-08 06:09:20
问题 I'm new to fuseki and want to use 2 TDB datasets for our project : a small one for our own data, and a large one (168 M triples, imported data from http://data.bnf.fr). We need to index the data because SPARQL queries using "FILTER(CONTAINS())" don't work on the large dataset ("BnF_text"). Therefore, I've built a text index for "BnF_text", following this post : Fuseki indexed (Lucene) text search returns no results (but I had to modify the turtle config file to get the text:query working). It

Fuseki GC overhead limit exceeded during data import

吃可爱长大的小学妹 提交于 2019-12-07 06:25:57
问题 I'm trying to import LinkedMDB (6.1m triples) into my local version of jena-fuseki at startup: /path/to/fuseki-server --file=/path/to/linkedmdb.nt /ds and that runs for a minute, then dies with the following error: Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded at com.hp.hpl.jena.graph.Node$3.construct(Node.java:318) at com.hp.hpl.jena.graph.Node.create(Node.java:344) at com.hp.hpl.jena.graph.NodeFactory.createURI(NodeFactory.java:48) at org.apache.jena.riot

SPARQL Query Error with OPTION(TRANSITIVE) on Jena

江枫思渺然 提交于 2019-12-06 05:30:56
I have the following Query PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?type WHERE { { SELECT * WHERE { ?x rdfs:subClassOf ?type . } } OPTION (TRANSITIVE, t_distinct, t_in (?x), t_out (?type) ) . FILTER (?x = <http://dbpedia.org/ontology/Hospital>) } It works fine when i send it to Virtuoso endpoint but does not work on my Jena instance. In specific i get the following error: INFO [1] 400 Parse error: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?type WHERE { { SELECT * WHERE { ?x rdfs:subClassOf ?type . } } OPTION (TRANSITIVE, t_distinct, t_in (?x), t_out (?type

Fuseki GC overhead limit exceeded during data import

懵懂的女人 提交于 2019-12-05 09:42:31
I'm trying to import LinkedMDB (6.1m triples) into my local version of jena-fuseki at startup: /path/to/fuseki-server --file=/path/to/linkedmdb.nt /ds and that runs for a minute, then dies with the following error: Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded at com.hp.hpl.jena.graph.Node$3.construct(Node.java:318) at com.hp.hpl.jena.graph.Node.create(Node.java:344) at com.hp.hpl.jena.graph.NodeFactory.createURI(NodeFactory.java:48) at org.apache.jena.riot.system.RiotLib.createIRIorBNode(RiotLib.java:80) at org.apache.jena.riot.system.ParserProfileBase

Conversion from OWLOntology to Jena Model in Java

两盒软妹~` 提交于 2019-12-02 17:59:38
问题 I need to convert data from OWLOntology object(part of OWL api) to Model object(part of Jena Api). My Java program should be able to load owl file and send its content to fuseki server. According to what I read, working with fuseki server via Java program is possible only with Jena Api, that's why I use it. So I found some example of sending ontologies to fuseki server using Jena api, and modified it to this function : private static void sendOntologyToFuseki(DatasetAccessor accessor,

Jena Fuseki Sparql No query= error

ⅰ亾dé卋堺 提交于 2019-12-02 17:32:24
问题 I am trying to inset data in a jena fuseki graph using this simple query: PREFIX test: <http://test.org> INSERT {?subject test:hasName "Bob"} WHERE{ ?subject test:hasEmail "email@test.com" . } However, i get the error: Error 400: SPARQL Query: No 'query=' parameter Fuseki - version 2.3.1 (Build date: 2015-12-08T09:24:07+0000) What does this error mean, and how can i resolve it? this error also appear when i try to delete data. Thanks. 回答1: Make sure you are pointing at the appropriate

How to generate all triples that fit a particular node type or/and edge type using SPARQL query?

自作多情 提交于 2019-12-02 10:00:50
It is a follow up question to : How to list and count the different types of node and edge entities in the graph data using SPARQL query? So assuming I have the different node entities and edge entities of a given graph, how do I go about listing all triples, given a node-edge-node pattern? And how do I generate ALL node-edge-node patterns given the node and edge entities? Example: If there is a network consisting of papers(nodes), authors(nodes), conferences(nodes), iswrittenby(edge), ispublishedin(edge), presentsin(edge) and so on , I'd have node entity type : papers authors conferences and

How do I start a Fuseki server from Jena API Eclipse project?

戏子无情 提交于 2019-12-02 08:53:30
Hi I am new to the Semantic Web domain and Apache Jena enviroments too, which is why I am posting this question. I have a project that makes use of Jena API. And when I run it, it shows output in the console. I did run Fuseki server from cmd line and it ran as a local server and I could do some playing around with queries and all that. My question is, is it possible to run the project on the server through my project that makes use of the API, and if so, why it should be done? I am confused as to the reason why we have a Fuseki server but aren't starting it through the API. Like any java

sparql group by and order by: not ordered

雨燕双飞 提交于 2019-12-02 08:14:10
问题 I follow up on query where the schema.org database is used to find the number of children of a class - as a simpler database than my application. I want to get the names of the children concatenated in alphabetic order. The query prefix schema: <http://schema.org/> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> select ?child (group_concat (?string) as ?strings) where { ?child rdfs:subClassOf schema:Event . ?grandchild rdfs:subClassOf ?child . bind (strafter(str(?grandchild), "http:/