sesame

How to prevent triples from getting mixed up while uploading to Dydra programmatically?

筅森魡賤 提交于 2019-12-12 06:34:23
问题 I am trying to upload some data to Dydra from a Sesame triplestore I have on my computer. While the download from Sesame works fine, the triples get mixed up (the s-p-o relationships change as the object of one becomes object of another). Can someone please explain why this is happening and how it can be resolved? The code is below: #Querying the triplestore to retrieve all results sesameSparqlEndpoint = 'http://my.ip.ad.here:8080/openrdf-sesame/repositories/rep_name' sparql = SPARQLWrapper

Querying Sesame triplestore using JavaScript

痞子三分冷 提交于 2019-12-12 01:49:04
问题 I am trying to retrieve data from a Sesame Triplestore using ajax. This is probably a CORS issue and I am trying to resolve it using CORS Filter. Is my assumption correct or do I need to change something in the code? $(document).ready(function() { $.ajax({ url: 'http://localhost:8080/openrdf-sesame/repositories/Test12', dataType: 'jsonp', data: { queryLn: 'SPARQL', query: "SELECT * WHERE { ?s ?p ?o }", limit: 100, infer: 'true', Accept: 'application/sparql-results+json' }, success:

Sesame repository not being updated using INSERT despite no error

你说的曾经没有我的故事 提交于 2019-12-11 13:43:34
问题 I am trying to update a Sesame repository with data from dbpedia. I have the following query: PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX : <http://dbpedia.org/resource/> PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX dbpedia: <http:/

MALFORMED QUERY: Encountered “ ”delete“ ”DELETE

送分小仙女□ 提交于 2019-12-11 13:37:40
问题 While trying to delete triplets I get following error: MALFORMED QUERY: Encountered " "delete" "DELETE Was expecting one of: "base" ... "prefix" ... "select" ... "construct" ... "describe" ... "ask" ... My query was: DELETE { ?s example:id 'Id' . }; Sesame with Jetty is what I am using. I sent an HTTP request. I have another question opened around this delete rest api to remove statements from global context I might be sending to wrong endpoint. My endpoint looks like: http://example.com

create a repository on sesame workbench, when restart tomcat, it gone

我怕爱的太早我们不能终老 提交于 2019-12-11 13:07:12
问题 I have created a repository named local. You can see there are several repositories on the sesame server. Then I restarted tomcat, connected to sesame workbench. Now all the repositories I just created is GONE!!(picture below) I don't understand, how can I find the repositories I JUST created? I Just put the war file into the tomcat "webapps" folder. and start tomcat. Environment : OS: Windows 10 tomcat: 8.0.30 java: 1.8.0_60 回答1: You are probably using a version of Sesame that has this bug:

Use RDF API (Jena, OpenRDF or Protege) to convert OpenIE outputs

醉酒当歌 提交于 2019-12-11 11:26:23
问题 I was recommended to use one of the APIs (Jena, OpenRDF or Protege) to convert the outputs that I generated from OpenIE4.1 jar file (downloadable from http://knowitall.github.io/openie/). The following is the sample OpenIE4.1 output format: confidence score followed by subject, predicate, object triplet The rail launchers are conceptually similar to the underslung SM-1 0.93 (The rail launchers; are; conceptually similar to the underslung SM-1) I planned to produce triples that follow this

delete rest api to remove statements from global context

我们两清 提交于 2019-12-11 08:25:14
问题 I send the following http request to Sesame Server: params = { 'subj' : '?s', 'pred' : 'rdf:type', 'obj' : 'Device' } Also tried: params = { 'pred' : 'rdf:type', 'obj' : 'Device' } which translates to: http://example.com/openrdf-sesame/repositories/devices/statements?pred=rdf%3Atype&subj=%3Fs&obj=Device I perform following operation on params in PYTHON: urllib.urlencode(params)) I get Response: 400 (Bad Request). Please help resolving this issue. I think its related to improper encoding of

allegro graph - federate repositories located on different server

别来无恙 提交于 2019-12-11 06:46:43
问题 I'm trying to create an abstract repository for doing a federal search on Allegro Graph. I'm able to connect to the repositories stored on different server. However, when I tried to combined them using the federate, it throws an error that it cannot find the repo on the second server. Is there a way to combined two repositories stored on different server into an abstract repository where a federal search can be done? AGServer server = new AGServer(SERVER_URL1, USERNAME1, PASSWORD1);

RDF4J Workbench Add RDF: How do I add multiple files?

陌路散爱 提交于 2019-12-11 04:59:31
问题 I'm using RDF4J Workbench 2.1.2. System Information Application Information Application Name RDF4J Workbench Version 2.1.2 Runtime Information Operating System Windows 10 10.0 (amd64) Java Runtime Oracle Corporation Java HotSpot(TM) 64-Bit Server VM (1.8.0_111) Process User gwcox Memory Used 315 MB Maximum 889 MB I have a set of RDF files containing ontologies I'm working on. Some RDF files import others. For example, my instantiations ontology/RDF file imports the several ontologies defining

Sesame 2.8.4 subquery limit bug fix?

江枫思渺然 提交于 2019-12-10 19:49:47
问题 It seems that there is bug in Sesame 2.8.4. If I have the following data set: @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. @prefix : <http://example.org/>. :a rdf:type :AClass . :a :hasName "a"^^xsd:string . :a :hasProperty :xa . :a :hasProperty :ya . :a :hasProperty :za . :b rdf:type :AClass . :b :hasName "b"^^xsd:string . :b :hasProperty :xb . :b :hasProperty :yb . :c rdf:type :AClass . :c :hasName "c"^^xsd:string . :c