graphdb

How to filter by BlankNode id

家住魔仙堡 提交于 2020-06-27 17:07:50
问题 I'm trying to run this query in the SPARQL playground on GraphDB . select * where { ?s content:value ?value . FILTER REGEX(str(?value), "_:x1697BD364N0abcdd866d54") } ?value are BNodes I'm trying to filter all values where the BNode ID is: _:x1697BD364N0abcdd866d54 I've tried a few different ways to filter by the ID: FILTER REGEX(str(?value), "#bnode-id") FILTER (?value), "#bnode-id") but none was a success. Questions: How would you filter based on a bnode id? Is it possible to STR(bnode) ?

How to filter by BlankNode id

血红的双手。 提交于 2020-06-27 17:07:20
问题 I'm trying to run this query in the SPARQL playground on GraphDB . select * where { ?s content:value ?value . FILTER REGEX(str(?value), "_:x1697BD364N0abcdd866d54") } ?value are BNodes I'm trying to filter all values where the BNode ID is: _:x1697BD364N0abcdd866d54 I've tried a few different ways to filter by the ID: FILTER REGEX(str(?value), "#bnode-id") FILTER (?value), "#bnode-id") but none was a success. Questions: How would you filter based on a bnode id? Is it possible to STR(bnode) ?

How to filter by BlankNode id

安稳与你 提交于 2020-06-27 17:07:12
问题 I'm trying to run this query in the SPARQL playground on GraphDB . select * where { ?s content:value ?value . FILTER REGEX(str(?value), "_:x1697BD364N0abcdd866d54") } ?value are BNodes I'm trying to filter all values where the BNode ID is: _:x1697BD364N0abcdd866d54 I've tried a few different ways to filter by the ID: FILTER REGEX(str(?value), "#bnode-id") FILTER (?value), "#bnode-id") but none was a success. Questions: How would you filter based on a bnode id? Is it possible to STR(bnode) ?

How to filter by BlankNode id

眉间皱痕 提交于 2020-06-27 17:07:07
问题 I'm trying to run this query in the SPARQL playground on GraphDB . select * where { ?s content:value ?value . FILTER REGEX(str(?value), "_:x1697BD364N0abcdd866d54") } ?value are BNodes I'm trying to filter all values where the BNode ID is: _:x1697BD364N0abcdd866d54 I've tried a few different ways to filter by the ID: FILTER REGEX(str(?value), "#bnode-id") FILTER (?value), "#bnode-id") but none was a success. Questions: How would you filter based on a bnode id? Is it possible to STR(bnode) ?

Can't get INSERT to work in SPARQLWrapper

别说谁变了你拦得住时间么 提交于 2020-01-04 06:58:14
问题 I've been trying to get SPARQLWrapper to insert a simple triple into GraphDB with no success. I have no trouble with select queries. Here's Python test code that fails: db = sparqlw.SPARQLWrapper(endpoint) query = ''' INSERT {<http://example.com/123456789876> a owl:Thing .} WHERE {} ''' db.setQuery(query) db.method = sparqlw.POST db.setReturnFormat(sparqlw.JSON) db.queryType= sparqlw.INSERT result = db.query() It returns these errors: "urllib.error.HTTPError: HTTP Error 400: Bad Request" and

How do owl and rdfs property domain range work?

五迷三道 提交于 2020-01-03 04:16:35
问题 I am trying to understand the semantics of rdfs domain and range. Because I am from an object oriented background, I am struggling to understand the semantics and how to validate data against the rdfs statements. Here is a sample file in turtle format: PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix tmpl: <http://template.example.com/> prefix data: <http://data.example.com/> tmpl

Ontotext GraphDB installation on linux debian (Jessie)

核能气质少年 提交于 2019-12-25 09:45:38
问题 I'm trying to install Ontotext GraphDB free on a debian jessie server. I've downloaded graphdb-free-8-1-1.deb file but when I'm typing the command sudo deb -i graphdb-free-8-1-1.deb as suggested in the quick start guide (http://graphdb.ontotext.com/documentation/free/quick-start-guide.html), I get the following message : sudo: deb: command not found It's seems that it has something to do with the /etc/sources.list file. Do I have to insert a line in this file ? how ? Thanks for your help. 回答1

How to infer individual with more than 2 properties in OWL / GraphDB?

时间秒杀一切 提交于 2019-12-24 10:58:54
问题 I got advice from the previous question and modified the source. However, the source still does not work properly. I am using GraphDB(RuleSet: OWL2-RL) and SPARQL. I have an ontology with Person and Animal_Lover classes. People are Animal_Lover if they have more than 2 pet. How can I do this in my ontology? <?xml version="1.0"?> <rdf:RDF xmlns="http://www.example.com/test" xmlns:test="http://www.example.com/test#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:owl="http://www

Do I really need OWL reasoning?

让人想犯罪 __ 提交于 2019-12-24 08:00:28
问题 I recently asked a question about the feasibility of loading about 10 million statements into a triplestore with OWL reasoning enabled. That has lead to some StackOverflow comments as well as discussion within my research group about whether or not we really need OWL reasoning. I'll start with a real-world query that doesn't seem to require OWL reasoning. "41167-4120-0" is the NDC Code that identifies the commercial drug product "Fexofenadine hydrochloride 180 MG Oral Tablet [Allegra]" in the