sparql Questions

2

Solved

In one of the samples for querying Wikidata, I found the following query, which includes p:P6/v:P6 in the line after SELECT. What does it mean? PREFIX wd: <http://www.wikidata.org/entity/> ...
Diarchy asked 8/8, 2015 at 19:51

5

Solved

Let's say I make the following insertions into my GraphDB 8.3 triplestore: PREFIX : <http://example.com/> insert data { :hello a :word } and PREFIX : <http://example.com/> insert da...
Lalitta asked 26/9, 2017 at 21:23

4

Solved

Ok so I'm trying to get information from Wikidata about movies, take this movie for example: https://www.wikidata.org/wiki/Q24871 On the page the data is clearly displayed in a readable format, ho...
Bram asked 7/7, 2015 at 10:44

3

Solved

I would like to get all the members of a specific category from Wikidata. For example, I would like to get all the films (instances of film: P31 Q11424) from the category "Category:Films set in Sto...
Perspiratory asked 24/8, 2016 at 15:29

1

Solved

Could anyone please explain to me the difference between FILTER NOT EXISTS and MINUS in SPARQL? Specifically, when they don't contain WHERE variables in their body. For example why does the followi...
Wayward asked 20/6, 2020 at 15:36

3

Solved

I've to get all the instances of a class C and subclasses (direct or indirect) of C, in SPARQL. I can get all the direct subclasses of C in this way: SELECT ?entity WHERE { ?subclass rdfs:subCla...
Pharisee asked 9/2, 2012 at 10:57

4

Solved

Is there a way of doing something like this: BIND((?s1, ?s2, ?s3) AS ?s) such that queries on ?s will be distributed to the list? EDIT BTW, it seems the following does not work. Am I doing som...
Delia asked 16/7, 2013 at 11:48

2

Solved

This is an extension of Get all nodes in a transitive relation Is it possible to get all transitive nodes between two transitive nodes using SPARQL? I tried to dig it out from this site and answer...
Abbey asked 11/12, 2013 at 12:17

3

Solved

What is the best way to access the members of an rdf list? I'm using rdflib (python) but an answer given in plain SPARQL is also ok (this type of answer can be used through rdfextras, a rdflib help...
Orthodontics asked 15/1, 2011 at 22:33

1

I have a large rdf file: size: 470MB number of lines: almost 6 million unique triple subjects: about 650,000 triple amount: about 4,200,000 I loaded the rdf definition into the berkeley db bac...
Bawl asked 12/6, 2019 at 15:6

4

Solved

I open the SPARQL Query tab in Protege but the result is this: How can I write my query?
Haller asked 2/6, 2017 at 11:48

3

Solved

I need to test for a certain structural property of a couple million SPARQL queries, and for that I need the structure of the WHERE statement. I'm currently trying to use fyzz to do this, but unfor...
Hazlett asked 8/8, 2011 at 16:3

3

How do I check and filter out empty strings using sparql.
Vlaminck asked 25/5, 2014 at 20:7

3

Solved

I am currently using Wikidata Query Service to run my Wikidata queries. For example, one of my Wikidata queries looks as follows. SELECT ?sLabel { SERVICE wikibase:mwapi { bd:serviceParam wikibas...
Jens asked 2/5, 2019 at 23:52

3

Solved

First thing Appreciate this may be a bit of a stupid question, but I'm working with GraphQL having come from the RDF/Linked Data world and having a lot of trouble getting my head around how I woul...
Buseck asked 27/9, 2017 at 10:52

3

Solved

I am new to wikidata and I can't figure out when I should use --> wdt prefix (http://www.wikidata.org/prop/direct/) and when I should use --> p prefix (http://www.wikidata.org/prop/). in my s...
Selfreliant asked 15/3, 2016 at 22:3

2

Solved

I am attempting to use a SPARQL Construct query to create a new named graph from an existing one. The database I am querying contains http://graph.com/old as an existing named graph. I am using Jen...
Amusing asked 20/8, 2013 at 22:21

3

Solved

I'm querying an OWL ontology using SPARQL, but the results show links as well as data. I only want the data. How can I remove the link and show on the data? The output I'm getting is: ------------...
Burdett asked 13/5, 2014 at 8:27

3

Solved

I've studied SPARQL specification on the topic and also found this answer rather interesting. However definitions are complicated enough, so I still don't see the answer for my question. I can't f...
Upbuild asked 17/2, 2014 at 9:14

5

Solved

whenever I start using SQL I tend to throw a couple of exploratory statements at the database in order to understand what is available, and what form the data takes. e.g. show tables describe tabl...
Tamtama asked 28/5, 2010 at 15:22

2

In Wikidata (Wikidata SPARQL endpoint), is there a way to order the SPARQL query results with something like a PageRank? SELECT DISTINCT ?entity ?entityLabel WHERE { ?entity wdt:P31 wd:Q5. SERVI...
Coalfish asked 11/9, 2016 at 16:3

1

Solved

I am Python newbie. Trying to use this module https://pypi.org/project/sparql-client/ module.py from sparql import Service class MyModule: def my_method(self): s = Service('https://my-endpoint...
Experimentation asked 12/11, 2020 at 7:12

3

Solved

I'm trying to retrieve some information from Wikidata and I have found interesting to collect the aliases of the voices. For examples Francesco Totti is also known as il Capitano or er Pupone : I...
Ardin asked 14/11, 2016 at 16:29

7

Solved

How can I select random sample from DBpedia using the sparql endpoint? This query SELECT ?s WHERE { ?s ?p ?o . FILTER ( 1 > bif:rnd (10, ?s, ?p, ?o) ) } LIMIT 10 (found here) seems to work...
Agglutination asked 15/4, 2011 at 13:15

1

Solved

Assuming the triples are following: @prefix : <http://example/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . :alice...
Sheepcote asked 31/8, 2020 at 2:37

© 2022 - 2024 — McMap. All rights reserved.