sparql

SPARQL Query to delete all blank nodes with in a Resource

筅森魡賤 提交于 2020-01-06 06:31:27
问题 I am writing a SPARQL query that should delete all triples within in this resource. prefix oslc: <http://open-services.net/ns/core#> prefix example: <http://rdf.company.com/ns/something/net#> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dcterms: <http://purl.org/dc/terms/> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> example:Resource2 a oslc:ResourceShape ; oslc:describes example:Resource2 ; oslc:property [ a oslc:Property ; oslc:isMemberProperty true ; oslc:name "pgn"

Querying property without value with SPARQL in WikiData

痞子三分冷 提交于 2020-01-06 05:50:11
问题 I have got a list of 1200 geographic enties like cities, lakes oder mountains as strings. I would like to enrich these enties with the authority file WikiData ID. This works but as result I get sometimes more than one WikiDataID suggestion. I need to define the right one by the apperance of an country in the Statements. As an example I tried the city Karlsruhe. For the string "Karlsruhe" I get three results. But I want just one specific WikiData ID (in this case: https://www.wikidata.org/wiki

SPARQL support protege 5

橙三吉。 提交于 2020-01-06 03:31:06
问题 what's the level of support of SPARQL in protege 5.2.0 SPARQL Query Plugin 2.02? I tried using FILTER STRSTARTS(STR(?subject), STR(prefix:)) and I get Unknown function 'http://www.w3.org/2005/xpath-functions#starts-with' I can't seem to find a listing with the supported functions and capabilities. Thanks 来源: https://stackoverflow.com/questions/53299218/sparql-support-protege-5

Object-to-Triple mapping using AllegroGraph RDF store? [closed]

萝らか妹 提交于 2020-01-06 02:47:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . My project is building a Java web application on top of the AllegroGraph RDF store. I would like to find a good solution to map between the triples that come out of the store and our domain objects. I have looked into Topaz, an Object/Triple mapping API being developed in the spirit of Hibernate. The trouble is

What are brackets in SPARQL and why is the linked movie database limited to 2500 records?

假如想象 提交于 2020-01-06 02:13:12
问题 The following SPARQL query fetches only 2500 records with actors and films I don't know why its limited to 2500: PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX movie: <http://data.linkedmdb.org/resource/movie/> SELECT ?id ?filmTitle ?actorName WHERE { SERVICE <http://data.linkedmdb.org/sparql> { ?film a movie:film ; movie:filmid ?id ; dcterms:title ?filmTitle ; movie:actor [ a movie:actor ; movie:actor_name ?actorName ]. } } The query is from an answer to the question: Querying the Linked

Filter on annotation - SPARQL

别等时光非礼了梦想. 提交于 2020-01-05 10:33:29
问题 I want to query my ontology based on annotations with datatype of float and string. For instance I have an individual that has an annotation "EBC_value" of type float and an annotation "Label" of type String. How do I do this? I have tried with REGEX, like this, but it doesn´t work. I don´t get any errors, just no results. PREFIX ont: <http://vestbrygg.no/ontologies/beer.owl#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd:

Make filtering people by birthYear and deathYear criteria more performative in SPARQL query

£可爱£侵袭症+ 提交于 2020-01-05 06:17:56
问题 I want to find instances of scientists who both were born and died in prime-numbered years. Building on a previous discussion at this URL, I devised the following query, which is unwieldy and times out: SELECT ?birthYear ?deathYear ?scientist ?scientistLabel WHERE { { select ?value1 { ?number wdt:P31 wd:Q49008. ?number wdt:P1181 ?value1 filter(?value1 < year(now())) } } { select ?value2 { ?number wdt:P31 wd:Q49008. ?number wdt:P1181 ?value2 filter(?value2 < ?value1) } } ?scientist wdt:P106 wd

Virtuoso SQL query of a SPARQL query in iSQL

*爱你&永不变心* 提交于 2020-01-05 05:43:33
问题 I was going through this link, which uses EXPLAIN() to show us the SQL query that Virtuoso generates(uses internally) for the input SPARQL query. I tried it on my Virtuoso 7.x version and found that I get a different output. I am not able to understand the output fully. Would it be possible to explain what this output from iSQL means and how I would interpret a SQL query from this? The SPARQL query is SPARQL SELECT DISTINCT ?s FROM <http://dbpedia.org> WHERE { ?s a <http://dbpedia.org

Make a query in SPARQL with DataType Property

强颜欢笑 提交于 2020-01-05 04:26:08
问题 I'm working with an ontology OWL and making a query about it. My query is: "PREFIX a: http://www.owl-ontologies.com/Indoor.owl# " + "SELECT ?X " + "WHERE { ?X a:hasDay a:" + day + " . " + " ?X a:hasRoom a:" + room + " . " + " ?X a:hasStartTime a:" + startTime +" }"; At the moment to make the query, the console of NetBeans throw me: Undefined object property used in query: http://www.owl-ontologies.com/Indoor.owl#hasStartTime But hasStartTime in the ontology isn't an object property, it is a

SPARQL on REGEX filter name

☆樱花仙子☆ 提交于 2020-01-05 04:18:05
问题 SPARQL on REGEX filter name works when I use direct search query. It is not working on regex using query. PREFIX dbpedia: <http://dbpedia.org/> PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> PREFIX dcterms: <http://dublincore.org/2010/10/11/dcterms.rdf#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> PREFIX grs: <http://www.georss.org/georss/point> PREFIX rdf: <http://www.w3.org/1999/02/22