fuseki

How to unload data from Jena Fuseki server

安稳与你 提交于 2019-12-12 02:44:25
问题 I am loading data to a named graph in fuseki server using the following command . How to remove the particular graph from jena fuseki server.Is there any simple commands similarly. '/home/user/jena-fuseki-1.1.1/./s-put http://192.168.1.2:3030/ds/data http://graph/graph1 /home/user/files/uniquename.ttl' How can i unload named graph from jena fuseki server. 回答1: Assuming you want to do this in a similar manner to adding a graph s-delete http://192.168.1.2:3030/ds/data http://graph/graph1 SPARQL

DELETE QUERY SPARQL FUSEKI

假装没事ソ 提交于 2019-12-12 02:15:45
问题 How can I delete all triples statement for a given uri? My graph contains: PREFIX mo: <http://www.dbwic.org/ontology#> PREFIX term: <http://www.dbwic.org/ontology/terms/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> <http://www.dbwic.org/page/d2e2e606-f962-4db1-8ffc-883e75da109a> term:title "tiitle album"; term:date "date title"; term:name " name ". I tried to delete all triples for http://www.dbwic.org/page/d2e2e606-f962-4db1-8ffc-883e75da109a but the query is not working. PREFIX mo:

SPARQL functions in CONSTRUCT/WHERE

。_饼干妹妹 提交于 2019-12-11 22:42:27
问题 I mostly use SPARQL SELECT while working on a query for debugging purposes but in the end I want to use the final result it in a CONSTRUCT way; as I want to work with a graph and not key/value query results. What I don't get yet (and can't seem to find with search engines/docs) is if I can use functions as well that way. As an example, I use a property path to concatenate titles I get into a "superstring", which I later use for building a Lucene index to increase plain text search quality:

fuseki config to an in memory with reasoner not working

柔情痞子 提交于 2019-12-11 12:24:15
问题 These settings were working with fuseki 2.0, now i am on fuseki 2.3, but these settings not working any more: [] rdf:type fuseki:Server ; fuseki:services ( <#serviceInMemoryWithReasoner> ) . <#serviceInMemoryWithReasoner> rdf:type fuseki:Service; rdfs:label "testdataset"; fuseki:name "testdataset"; fuseki:serviceQuery "query"; fuseki:serviceUpdate "update"; fuseki:dataset <#datasetServiceInMemoryWithReasoner> ; . <#datasetServiceInMemoryWithReasoner> rdf:type ja:RDFDataset; ja:defaultGraph <

Difference in performance between using VALUES keyword and using directly the URI in the query?

血红的双手。 提交于 2019-12-11 07:49:35
问题 I have a fairly complex SPARQL query with the structure outlined below, involving multiple graph patterns, UNION and nested FILTER NOT EXISTS . I want the query to remain generic, and I want to be able to inject values for certain variables at execution time, and my idea is to append a VALUES keyword at the end of the query to specify the value of certain variables in the query. In the structure below, I set the value of ?x , and I illustrate all the places in the query where ?x applies.

What is the SPARQL query to check if a graph exists and return a message?

荒凉一梦 提交于 2019-12-11 07:46:41
问题 I want to check if the graph exists in my Fuseki server and if it does, it should return a message like The graph exists 回答1: You can do this with an ASK query. For example, to check that a named graph http://example.org/graph1 exists, you can do this: ASK WHERE { GRAPH <http://example.org/graph1> { ?s ?p ?o } } It will return true if it exists, false otherwise. 来源: https://stackoverflow.com/questions/27080839/what-is-the-sparql-query-to-check-if-a-graph-exists-and-return-a-message

Apache Fuseki: invoke str function

老子叫甜甜 提交于 2019-12-11 04:39:38
问题 I would run this query: SELECT DISTINCT ?id str(?name) but Fuseki give me this error: This line is invalid.Expected ( VAR1... I would need a string value of ?name . 回答1: I suppose you are talking about something like this. This message is a warning produced by Fuseki component called YASGUI (or rather YASQE). You have two options: Use more conformant syntax, i. e. SELECT DISTINCT ?id (str(?name) AS ?str_name) etc. Ignore this warning and run your query, Jena ARQ should accept it and return a

SPARQL query works in Fuseki but not in Jena TDB

本秂侑毒 提交于 2019-12-11 03:21:42
问题 I have my data organised in multiple graphs. The graph in which a triple is saved matters. The data structure is complicated but it can be simplified like this: My store contains cakes, where there's a hierarchy of different cake types, all subclasses of <cake> <http://example.com/a1> a <http://example.com/applecake> <http://example.com/a2> a <http://example.com/rainbowcake> ... Depending on how they get created by a user in a UI, they end up in a different graph. If for instance the user

Jena Fuseki Server command not found

ぃ、小莉子 提交于 2019-12-11 01:12:43
问题 I am new to Jena Fuseki server. According to the link http://jena.apache.org/documentation/serving_data/index.html, after I downloaded and unzipped it on my Fedora machine,I tried to start the server using command line. Under the Fuseki directory, the command should be like this: fuseki-server --update --mem /ds , yet it gave the error: fuseki-server command not found . Is there anyone who knows what the problem is? Thanks. 回答1: It works for me. Maybe you can read through the sequence below

How to calculate maximum degree of a directed graph using SPARQL?

好久不见. 提交于 2019-12-10 17:09:45
问题 I have computed the indegree and outdegree of each node in the directed graph in two separate queries: SELECT ?s (COUNT(*) AS ?outdegree) { ?s ?p ?o } GROUP BY ?s ORDER BY DESC(?outdegree) SELECT ?o (COUNT(*) AS ?indegree) { ?s ?p ?o } GROUP BY ?o ORDER BY DESC(?indegree) I need to compute the maximum degree of the graph. Since max degree of a directed graph is the maximum (indegree+outdegree) value of the graph , I want to know how to combine the results of the above two queries to compute