sparql Questions

3

Solved

If I have a graph with this kind of structure: @prefix : <http://example/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix foaf: <http://xmlns.com/foaf/0.1/&g...
Fleeta asked 19/6, 2017 at 4:53

4

Solved

I have a SPARQL query like this PREFIX prefix: <http://example.org/ns#> SELECT * WHERE { ?x rdf:type ?type . } Suppose now I want to specify the type of ?type as being either prefix:type...
Cuevas asked 15/4, 2013 at 22:3

4

Solved

GREMLIN and SPARQL only define the APIs for graph queries. How do I use the API responses and and plot that as an actual graph, with edges and vertices? Is there something like MySQL Workbenc...
Benevento asked 17/10, 2018 at 5:47

1

I have an ontology in an 'owl' file (nif.owl). I am familiar with Java, but it kept crashing; therefore, I tried using Python. However, since I have not used Python before, I am not sure if I am l...
Anestassia asked 17/6, 2019 at 12:16

4

Solved

How can I query Wikidata to get all items that have labels contain a word? I tried this but didn't work; it retrieved nothing. SELECT ?item ?itemLabel WHERE { SERVICE wikibase:label { bd:service...
Bonkers asked 22/7, 2016 at 13:33

2

Solved

I have RDF in turtle format in this following @prefix ab: <http://learningsparql.com/ns/addressbook#> . @prefix d: <http://learningsparql.com/ns/data#> . d:i0432 ab:firstName "Richa...
Overstay asked 5/8, 2014 at 4:45

3

I'm using SPARQL and I wonder if I can put an sparql inside in clause? To be more specific, I need to get entities(s1,s2) who have specific condition for this sparql query[s1's aggregate value over...
Adalie asked 30/11, 2012 at 18:17

2

Solved

Suppose I have some jena query object : String query = "SELECT * WHERE{ ?s <some_uri> ?o ...etc. }"; Query q = QueryFactory.create(query, Syntax.syntaxARQ); What would be the best way to g...
Clef asked 4/3, 2013 at 14:28

1

I'm looking for a way to get all the movies on English Wikipedia, with their creation date. A movie for me is a page with IMDB ID attached to it. So, this is my query so far: SELECT DISTINCT ?it...
Yungyunick asked 5/1, 2020 at 11:36

2

Solved

Most SPARQL endpoints have some extensions allowing for full-text search. Can I do full-text searches with the Amazon Neptune SPARQL endpoint?
Fourierism asked 6/8, 2018 at 11:55

2

Solved

I'm playing with the idea of using SPARQL to identify conceptual overlap between things. Take movies for example (LinkedMDB data), if I have a movie, "The Matrix" and my goal is to list movies tha...
Matchless asked 22/1, 2014 at 17:46

1

Solved

Considering a tree with the root node "A" and "hasChild" relationships (e.g. product structure) as following: Target is to find out: What nodes have parents outside of the tree? In this case th...
Nepenthe asked 17/10, 2019 at 21:33

1

Solved

Trying to execute a query using rdf4j console against a sparql endpoint to find the path between 2 nodes using property wildcards but no luck. The first query gives an error as Malformed query: N...
Ferrick asked 14/10, 2019 at 21:30

1

Solved

I'm following these instructions to submit a SPARQL query, preferring the POST method as queries may be quite long. But it seems to fail even though the GET works - any way to make a POST query wor...
Schottische asked 21/9, 2019 at 14:46

2

Solved

I know that there are similar questions around on Stackoverflow but I don't feel they answer the following. Graph Databases to my understanding store data following mostly this schema: Table/Coll...
Toxoplasmosis asked 11/5, 2015 at 11:3

2

I know the following SPARQL against Wikidata SPARQL Endpoint query is senseless. A similar query is automatically generated from within my application. Please disregard the conceptual soundness, an...
Tillfourd asked 28/4, 2018 at 13:23

5

Solved

If you look at the original Wordnet search and select "Display options: Show Lexical File Info", you'll see an extremely useful classification of words called lexical file. Eg for "filling" we have...
Cisterna asked 13/7, 2011 at 15:24

1

Solved

I am using SPARQLWrapper to send SPARQL queries to Wikidata. At the moment I am trying to find all properties for an entity. Eg. with a simple tuple such as: wd:Q11663 ?a ?b. This in itself works, ...
Audet asked 7/6, 2019 at 1:21

1

Right now I have a query that returns a list of various properties for a specific entity: SELECT ?propLabel ?val WHERE { BIND(wd:Q122426 as ?entity) { BIND(?entity AS ?valUrl) BIND("n/a" AS ?...
Vi asked 17/5, 2019 at 19:4

1

Solved

I have multiple resources like A, B, C. I want to know these resources exist in my database or not. Here is a sample of query for one of them: ASK { <http://fkg.iust.ac.ir/resource/A> ?p ?...
Nystrom asked 14/5, 2019 at 20:16

1

I wanted to add the instance of property to this example query to get only items which are an instance of human. This is the example query: SELECT ?entityLabel (YEAR(?date) as ?year) WHERE { BI...
Premonitory asked 31/1, 2017 at 23:13

1

Solved

I am trying to build a 6-tuple store on top of wiredtiger. The tuples can be described as follow: (graph, subject, predicate, object, alive, transaction) Every tuple stored in the database is un...
Overbear asked 13/3, 2019 at 13:49

2

Solved

What is a good way to check if a SPARQL resource exists? I'm searching for the equivalent of firing a HTTP GET request to e.g. http://dbpedia.org/resource/Game_of_Thrones and check the HTTP status ...
Raki asked 10/11, 2017 at 14:58

3

Solved

I'm trying to query DBPedia for a list of properties relating to a given class in the ontology, but since the human-readable "labels" aren't always clear, I'd also like to provide an example from t...
Remittent asked 22/3, 2011 at 18:29

5

Solved

I discovered the SparQL syntax at the Mozilla Festival 12. The demonstrator was using a proprietary web-based interface and I was wondering if there is open services or maybe (cross-platform) GUI...
Jaella asked 21/1, 2013 at 7:49

© 2022 - 2024 — McMap. All rights reserved.