sesame

What URI to use for a Sesame repository while executing a SPARQL ADD query

空扰寡人 提交于 2020-01-06 13:13:56
问题 I'm trying to copy the data from a Sesame repository to another triplestore. I tried the following query: ADD <http://my.ip.ad.here:8080/openrdf-workbench/repositories/rep_name> TO <http://dydra.com/username/rep_name> The query gets executed with output as 'true' but no triples are added. So, I tried a similar query to see if I can move data from one Sesame repository to another using SPARQL Update: ADD <http://my.ip.ad.here:8080/openrdf-workbench/repositories/source_rep> TO <http://my.ip.ad

What URI to use for a Sesame repository while executing a SPARQL ADD query

有些话、适合烂在心里 提交于 2020-01-06 13:10:11
问题 I'm trying to copy the data from a Sesame repository to another triplestore. I tried the following query: ADD <http://my.ip.ad.here:8080/openrdf-workbench/repositories/rep_name> TO <http://dydra.com/username/rep_name> The query gets executed with output as 'true' but no triples are added. So, I tried a similar query to see if I can move data from one Sesame repository to another using SPARQL Update: ADD <http://my.ip.ad.here:8080/openrdf-workbench/repositories/source_rep> TO <http://my.ip.ad

RDF4J Workbench: Why is One SPIN Constructor Very Slow?

女生的网名这么多〃 提交于 2019-12-24 08:00:36
问题 I apologize for the length of this posting. I am trying to make this slow rule issue reproducible. I'm using TopBraid Composer FE to create an RDF file with ontology and SPIN constructors. He purpose of the SPIN constructors is to check for compliance in the instantiations of individuals of classes defined in the ontology. I find that the execution of the SPIN constructor is very slow, and I'd like to know why. Ontology Including SPIN Constructors SXXIComplianceCheck18.rdf I Modify/Clear my

Sesame : how to remove the inference during queries?

馋奶兔 提交于 2019-12-24 02:51:30
问题 I'm looking for a solution in order to "remove" the inference during a query launched on Sesame. I must use a "Native Java Store RDF Schema" repository and I have this query : I have an instance, a NamedIndividual, and I want the uri of the class whose instance it is : SELECT DISTINCT ?uri WHERE { <http://www.semanticweb.org/ontotest#myInstance> rdf:type ?uri . FILTER (?uri rdf:type owl:Class) } The problem is that I get severals URI (whom the good URI) instead of one because of the inference

How to get a concise bounded description of a resource with Sesame?

左心房为你撑大大i 提交于 2019-12-23 09:01:54
问题 I've been testing Sesame 2.7.2 and I got a big surprise when faced to the fact that DESCRIBE queries do not include blank nodes closure [ EDIT: the right term for this is CBD for concise bounded description ] If I correctly understand, the SPARQL spec is quite loose on that and says that what is returned is actually up to the provider, but I'm still surprised at the choice, since bnodes (in the results of the describe query) cannot be used in subsequent SPARQL queries. So the question is: how

Sparql Select Query works on Sesame-Workbench but not on Java

泪湿孤枕 提交于 2019-12-23 05:20:04
问题 I'm trying to create a Sparql-Query to get all messages, that are related to a lecture. I'm new at the whole 'semantic web'-story so be patient if the usage namespace is completely wrong. The query I try to execute is: PREFIX siocNS: <http://rdfs.org/sioc/ns#> PREFIX rdfPred: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX purlPred: <http://purl.org/dc/terms/> PREFIX purlPredLecture: <http://purl.org/<CENSORED>/lecture/> select ?post ?title ?content ?time ?creator where { ?post rdfPred

How can I easily convert RDF triples to/from an idiomatic Java POJO business object?

谁说胖子不能爱 提交于 2019-12-18 05:17:36
问题 I'm a Java developer just getting started with linked data/RDF. I can create triples, put them in a triple store, query them, etc, but it's very awkward. Most of my code is focused on the mechanics of RDF and I'd really like to work with this data in a way that's more idiomatic Java. How can I convert a POJO to/from RDF triples with Jena without hand-coding everything? I'd like something that can convert a pile of triples with a defined structure back and forth between a Java POJO and RDF.

how to use CSPARQL-ReadyToGoPack-0.9 in a SBT project

爱⌒轻易说出口 提交于 2019-12-14 03:31:38
问题 I want to use the CSPARQL-ReadyToGoPack-0.9 in an SBT project. I'm on Linux. How can I do that? 回答1: In your build script you probably need to specify an artifact explicitly for the dependency (the module id parameters are jus): import sbt._ import Keys._ libraryDependencies += "foo" % "bar" % "0.1" artifacts Artifact("foo", url("file:/path/to/jar")) 来源: https://stackoverflow.com/questions/32274826/how-to-use-csparql-readytogopack-0-9-in-a-sbt-project

SPARQL limiting the query result by a variable instead of the number of rows

白昼怎懂夜的黑 提交于 2019-12-13 02:12:48
问题 Lets say I have the following data set: :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 :hasProperty :xc I want to query the data set to give me back everything of an instance of :AClass , but only for two instances. I know I have to use the LIMIT keyword, and I have tried a lot of queries but

sesame 2.6.9 with tomcat 7 set up won't work

女生的网名这么多〃 提交于 2019-12-13 00:43:09
问题 I was trying to install sesame. I first followed these instructions: http://www.openrdf.org/doc/sesame2/users/ch06.html To install tomcat as a prerequesite I used this tutorial: http://www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/ (I stopped before the automatic starting part) The set up tutorial says "The deployment process is container-specific, please consult the documentation for your container on how to deploy a web application." according to this tutorial: http://www.snee