rdf

Duplicate triple in RDF, authoritative view?

此生再无相见时 提交于 2019-12-12 09:49:43
问题 if a triple store contains twice the same triple, what is (if any exist) the authoritative position about this redundancy ? Additionally, should a triplestore be allowed to store twice the same triple within the same context ? I ask this because in rdflib apparently you can store the same triple twice (or more). This is the reader import rdflib from rdflib import store s = rdflib.plugin.get('MySQL', store.Store)('rdfstore') config_string = "host=localhost,password=foo,user=foo,db=foo" rt = s

Jena Fuseki assembler file + TDB + OWL reasoner

末鹿安然 提交于 2019-12-12 09:02:24
问题 I am having a problem configuring Jena Fuseki using an assembler file. Up until recently I had been starting the server from the command line as follows: sudo ./fuseki-server --loc=la --port=3032 --update /ds This creates a persistent TDB store located in the directory SERVER_ROOT/la. The server starts correctly and displays the following output: 14:30:55 INFO TDB dataset: directory=la 14:30:55 INFO Dataset path = /ds 14:30:55 INFO Fuseki 1.0.1 2014-01-18T19:01:20+0000 14:30:55 INFO Started

Measuring distances among classes in RDF/OWL graphs

时光怂恿深爱的人放手 提交于 2019-12-12 08:48:46
问题 Maybe someone could give me a hint. Is it possible to measure the distance between 2 concepts/classes that belong to the same ontology? For example, let's suppose I have an ontology with the Astronomy class and the Telescope class. There is a link between both, but it is not a direct link. Astronomy has a parent class called Science, and Telescope has a parent class called Optical Instrument which belongs to its parent called Instrumentation, that is related to a class called Empirical

The best tool for visualizing ontologies? [closed]

末鹿安然 提交于 2019-12-12 07:44:27
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I am looking to visualize ontologies for understanding and making others understand. I would prefer to have top-down hierarchy of

SPARQL Querying Transitive

最后都变了- 提交于 2019-12-12 07:26:41
问题 I am a beginner to SPARQL and was wondering if there was a query which could help me return transitive relations. For example the n3 file below I would want a query that would return "a is the sameas c" or something along those lines. Thanks @prefix : <http://websitename.com/links/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . :a owl:sameas :b. :b owl:sameas :c. 回答1: You can use property paths if you are using a suitably enabled SPARQL 1.1 engine, you've tagged your question Jena so I

Binding a variable to one of two values with IF?

Deadly 提交于 2019-12-12 07:17:43
问题 In the following SPARQL query, I'm not sure how to use if to bind one of two strings to the variable ?result . I heard that there are concepts of “in scope” and “out of scope,” but I don't really see the difference. I've also tried putting the if clause in the select line, but it didn't work either. How can I fix this query to bind ?result to one of the two strings based on the condition? SELECT ?result WHERE{ ?chain rdf:type rdfs:Property . ?chain rdfs:domain <http://www.vs.cs.hs-rm.de

Same sparql not returning same results

纵饮孤独 提交于 2019-12-12 06:56:05
问题 I'm using the same sparql statement using two different clients but both are not returning the same results. The owl file is in rdf syntax and can be accessed here. This is the sparql statement: PREFIX wo:<http://purl.org/ontology/wo/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> select ?individual where { ?individual rdf:type wo:Class } I'm using it using top braid and the following python program: >>> import rdflib >>> import rdfextras >>> rdfextras.registerplugins() >>> g

.net rdf dblp dataset querying

爱⌒轻易说出口 提交于 2019-12-12 06:30:34
问题 when i run the following code to query the dblp dataset using this code snippet i am using this endpoint http://dblp.l3s.de/d2r/snorql enter code here String st = ""; String qry = ""; String uri_V; uri_V = "http://dblp.l3s.de/d2r/sparql"; // Modify if need...... //String ns = "\""+TextBox1.Text.ToString()+"\""; // String qry = "SELECT DISTINCT ?name WHERE { ?person foaf:name ?name.FILTER regex(str(?name),"+ns+").}"; if (radiosrch.SelectedIndex == 0) { qry = "SELECT ?title WHERE {?game <http:/

SPARQL query of Person using EasyRdf on DBpedia

白昼怎懂夜的黑 提交于 2019-12-12 06:14:28
问题 I want to get all information about a Person from the DBpedia SPARQL API. First problem is, the request took too long time. Second, I don't get back any information about the person I looked for. I don't know what I am doing wrong? My Code: require_once "EasyRdf.php"; require_once "html_tag_helpers.php"; // Setup some additional prefixes for DBpedia EasyRdf_Namespace::set('category', 'http://dbpedia.org/resource/Category:'); EasyRdf_Namespace::set('dbpedia', 'http://dbpedia.org/resource/');

RiotException when loading a Model using Jena 2.12.1

亡梦爱人 提交于 2019-12-12 06:10:06
问题 I've created this simple class named RDFReader for loading a model from a URI from DBpedia: import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.util.FileManager; public class RDFReader { public static Model readFromURL(String URL){ try{ return (new FileManager()).loadModel(URL); }catch(Exception e){ e.printStackTrace(); } return null; } public static void main(String[] args) { RDFReader.readFromURL("http://dbpedia.org/resource/Pacific_Rim_(film)"); } } I've used Jena v2.12.1 as