fuseki

sparql expecting one of “where”, “using”

冷暖自知 提交于 2019-12-02 08:14:05
问题 I am trying to do a simple insert query in the web interface of Fuseki server. I have set the endpoint to /update (instead of the default /sparql ). I have the following query from https://www.w3.org/Submission/SPARQL-Update/: PREFIX dc: <http://purl.org/dc/elements/1.1/> INSERT { <http://example/egbook3> dc:title "This is an example title" } This query gets translated to: http://localhost:3033/dataset.html#query=PREFIX+dc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0AINSERT+%7B+

sparql expecting one of “where”, “using”

﹥>﹥吖頭↗ 提交于 2019-12-02 07:18:18
I am trying to do a simple insert query in the web interface of Fuseki server. I have set the endpoint to /update (instead of the default /sparql ). I have the following query from https://www.w3.org/Submission/SPARQL-Update/ : PREFIX dc: <http://purl.org/dc/elements/1.1/> INSERT { <http://example/egbook3> dc:title "This is an example title" } This query gets translated to: http://localhost:3033/dataset.html#query=PREFIX+dc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0AINSERT+%7B+%3Chttp%3A%2F%2Fexample%2Fegbook3%3E+dc%3Atitle++%22This+is+an+example+title%22+%7D%0A or curl http:/

sparql group by and order by: not ordered

╄→尐↘猪︶ㄣ 提交于 2019-12-02 05:47:37
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://schema.org/") as ?string) } group by ?child order by asc(?string) limit 20 gives schema:PublicationEvent

fuseki webinterface does not show datasets

两盒软妹~` 提交于 2019-12-02 02:36:16
问题 I have installed fuseki and start the server with #!/bin/sh cd /home/frank/localInstall/jena/apache-jena-fuseki-2.5.0 exec /home/frank/localInstall/jena/apache-jena-fuseki-2.5.0/fuseki-server -v --update --mem /testDB The server is working and programs can store data in /testDB, but the webinterface does not show the datasets and I cannot add a dataset. When I try to query the interface says Please select a dataset. I think I had this problem before and solved it by reinstalling the fuseki

fuseki webinterface does not show datasets

核能气质少年 提交于 2019-12-02 02:04:25
I have installed fuseki and start the server with #!/bin/sh cd /home/frank/localInstall/jena/apache-jena-fuseki-2.5.0 exec /home/frank/localInstall/jena/apache-jena-fuseki-2.5.0/fuseki-server -v --update --mem /testDB The server is working and programs can store data in /testDB, but the webinterface does not show the datasets and I cannot add a dataset. When I try to query the interface says Please select a dataset. I think I had this problem before and solved it by reinstalling the fuseki folder. I would like to understand what I did wrong and how to avoid this problem. Thank you! the config

How to list and count the different types of node and edge entities in the graph data using SPARQL query?

[亡魂溺海] 提交于 2019-12-01 23:00:22
I'm looking to provide some summary stats for a data set and I want to list the different types of edge entities and node(vertex) entities in the graph. For example: -> In Twitter Social network graph of users and following relationship (Homogeneous graph), there is only one type of vertex entity (user), but in heterogeneous graphs such as ConceptNet data, it will have multiple values. -> The edge entities can be computed by just counting the different number of predicates I believe using the query : SELECT DISTINCT (?p AS ?DistinctEdges) { ?s ?p ?o } But I am not sure how to do so for

Sparql query doesn't upadate when insert some data through java code

徘徊边缘 提交于 2019-12-01 00:45:17
I'm trying to insert data through my java code to the owl file which is loaded into Fuseki server. Update query doesn't give any error message. But owl file doesn't update.I'm using jena library and implemented using java code. What is the wrong in my code? public boolean addLecturerTriples(String fName, String lName, String id, String module) { try{ ArrayList<String> subject = new ArrayList<String>(); ArrayList<String> predicate = new ArrayList<String>(); ArrayList<String> object = new ArrayList<String>(); subject.add("<http://people.brunel.ac.uk/~csstnns/university.owl#"+fName+">");

Sparql query doesn't upadate when insert some data through java code

六月ゝ 毕业季﹏ 提交于 2019-11-30 18:49:45
问题 I'm trying to insert data through my java code to the owl file which is loaded into Fuseki server. Update query doesn't give any error message. But owl file doesn't update.I'm using jena library and implemented using java code. What is the wrong in my code? public boolean addLecturerTriples(String fName, String lName, String id, String module) { try{ ArrayList<String> subject = new ArrayList<String>(); ArrayList<String> predicate = new ArrayList<String>(); ArrayList<String> object = new

Fuseki indexed (Lucene) text search returns no results

 ̄綄美尐妖づ 提交于 2019-11-30 18:24:35
问题 I have a very large ontology RDF file (almost 4M instances) that I'm currently streaming via Fuseki v2.0.0. My assembler file looks like this: @prefix : <#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix text: <http://jena.apache.org/text#> . @prefix myprefix: <http://www.example.org/some/path/myprefix#> . #

SPARQL - Insert data from remote endpoint

核能气质少年 提交于 2019-11-29 16:53:37
How can i query a remote endpoint (like endpoints of DBPedia or Wikidata ) and insert resulting triples in a local graph? So far, i know that there are commands like INSERT, ADD, COPY etc. which can be used for such tasks. What i don't understand is how to address a remote endpoint while updating my local graph. Could someone provide a minimum example or the main steps? I'm using Apache Jena Fuseki v2 on Windows and this is my query so far: PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX p: <http://www.wikidata.org/prop/> PREFIX wd: <http://www.wikidata.org/entity/> INSERT { GRAPH <?