sparql

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 <

SPARQL update with optional parts

喜你入骨 提交于 2019-12-11 12:07:59
问题 Consider the following SPARQL update: INSERT { ?performance mo:performer ?performer ; # optional mo:singer ?singer ; # optional mo:performance_of [ dc:title ?title ; # mandatory mo:composed_in [ a mo:Composition ; mo:composer ?composer # optional ] ] } WHERE {} If I do not provide values (e.g. in Jena's ParameterizedSparqlString.setIri() for ?performer , ?singer , or ?composer , this update won't insert statements with the corresponding objects, which is as intended. But how can I suppress []

SPARQL 1.1 entailment regimes and query with FROM clause (follow-up)

浪子不回头ぞ 提交于 2019-12-11 12:07:48
问题 This is a follow-up question from SPARQL 1.1 entailment regimes and query with FROM clause I'm currently documenting/testing about SPARQL 1.1 entailment regimes and the recommendation repeatedly states that The scoping graph is graph-equivalent to the active graph... So it would seems that the inference scoping graph depends on the query. The question is: does the scoping graph stems from the query's dataset (FROM/FROM NAMED clauses) or does it refer to the real current active graph context

How the pass the output of one sparql query as a input to another sparql query

混江龙づ霸主 提交于 2019-12-11 11:47:47
问题 I am trying get the dbpedia movie link using the movie name in the first query and pass that link in the second query to get the movies similar to this movie.For e.g Lagaan.Now instead of passing the link manually in the second query is there a way to combine the two queries and pass the output of first query as an input to the second query.i.e:the link of the movie lagaan.Also,if the first query gives multiple links eg:if i am searching for Harry potter it will return multiple harry potter

SPARQL if an instance has a property, others must as well

↘锁芯ラ 提交于 2019-12-11 11:45:46
问题 I have a specific instance and a SPARQL query that retrieves other instances similar to that one. By similar, I mean that the other instances have at least one common property and value in common with the specific instance, or have a class in common with the specific instance. Now, I'd like to extend the query such that if the specific instance has a value for a "critical" property, then the only instances that are considered similar are those that also have that critical property (as opposed

SPARQL Query to get Movie detail

荒凉一梦 提交于 2019-12-11 11:45:37
问题 To get movie detail from linkedmdb, I used sparql query : PREFIX mdb: <http://data.linkedmdb.org/resource/movie/film> SELECT DISTINCT ?Title ?Genre ?Actor ?Country ?Director ?Year WHERE { ?film mdb:id ?uri . ?film dc:title ?Title . ?film movie:genre ?filmgenre. ?filmgenre movie:film_genre_name ?Genre . ?film movie:actor ?cast . ?cast movie:actor_name ?Actor . ?film movie:country ?Ctr . ?Ctr movie:country_name ?Country . ?film dc:date ?Year . ?film movie:director ?Drc . ?Drc movie:director

Converting an RDB to RDF with autogenerated code

泪湿孤枕 提交于 2019-12-11 11:41:27
问题 I am using the OpenLink Virtuoso software to convert a Relational Database to RDF using this tutorial: Automated Generation of Linked Data Views over Relational Data Sources with Virtuoso I have a database with 5 tables ( Authors , Keywords , Publications , References , Rights ) and I imported them in Virtuoso database using .csv files. So basically I have followed the steps for the "Manual Linked Data Generation & Deployment using the Conductor's HTML-based wizard", because I need to use my

jena.query.ResultSet and jena.query.QuerySolution: empty iterator after SPARQL request

跟風遠走 提交于 2019-12-11 11:38:14
问题 A have a problem with receiving SPARQL response. A problem is method ((ResultSet) response).hasNext() returns false despite response shouldn't be empty. Request is: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 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 ontology: <http://www.semanticweb.org/kseniia/ontologies/2013/1/untitled-ontology-12#> SELECT ?x WHERE {?x rdfs

Ruby SPARQL Client with Property Path Unary * Operator syntax

◇◆丶佛笑我妖孽 提交于 2019-12-11 11:28:48
问题 This SPARQL query example works fine: require 'sparql/client' rdfs_vocabulary = RDF::Vocabulary.new("http://www.w3.org/2000/01/rdf-schema#") sparql_client.select.where(:x, rdfs_vocabulary.subClassOf, :type) Extending it with the Property Path * operator to get all subclasses, the following syntax works as well: sparql_client.select.where(:x, "<http://www.w3.org/2000/01/rdf-schema#subClassOf>*", :type) but is it possible to avoid the full-URI? 回答1: Try sparql_client.select.where([:x, [RDF:

Find individuals in SPARQL based on other relations / Compare sets

时光毁灭记忆、已成空白 提交于 2019-12-11 11:19:12
问题 Given are Objects :A, :B and :C which have properties assigned, whereas these properties are not scalar themselves but are also objects with key and value properties. @prefix x: <http://example.com/example#> x:A x:hasProp x:Prop1 . x:Prop1 x:Key "1" . x:Prop1 x:Value "AA" . x:B x:hasProp x:Prop2 . x:Prop2 x:Key "1" . x:Prop2 x:Value "AA" . x:C x:hasProp x:Prop3 . x:C x:hasProp x:Prop4 . x:Prop3 x:Key "1" . x:Prop3 x:Value "AA" . x:Prop4 x:Key "2" . x:Prop4 x:Value "BB" . How can I assert that