Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

I'm trying to create a query to match what we call the "shape" of a node in our rdf data. One of the things that goes into this shape is a cardinality for each type of predicate that can ...
csong's user avatar
  • 3
0 votes
0 answers
28 views

I have a SPARQL request that extracts various data for geographic locations from Wikidata: SELECT DISTINCT ?h ?hLabel ?type ?location ?parent ?north ?south ?east ?west ?area WHERE { VALUES (?h) {(wd:...
Dr. Goulu's user avatar
  • 610
2 votes
0 answers
57 views

I wanted to know for each president, in what state were they born, so I wrote this Wikidata query: SELECT * WHERE { # P31 = instance of # Q5 = human (excludes fictional characters) ?president ...
charmoniumQ's user avatar
  • 5,583
1 vote
1 answer
73 views

parseQuery in RDFLib catches syntax errors, but I can not find a way to make RDFLib flag semantic/static issues (e.g., GROUP BY mismatches) before execution on a remote endpoint. translateQuery was ...
Finn Årup Nielsen's user avatar
0 votes
0 answers
27 views

I want to compare 2 SPARQL queries with each other, especially the query patterns in the WHERE clause. The huge problem is that there are multiple variants that have the same semantic meaning so I am ...
Adrian's user avatar
  • 25
2 votes
1 answer
87 views

Question How do I get from an animal name (tiger) to its WikiData entity id (Q19939) in a static website? Context I am writing a small static website (no backend, just html and vanilla javascript) ...
Kaligule's user avatar
  • 830
3 votes
0 answers
44 views

In Python, I am querying SPARQL queries using SPARQLWRAPPER. I currently have two queries: # A lot of PREFIX definitions at the top of the query INSERT {{ GRAPH <https://graph-dev....
Dennis123's user avatar
0 votes
0 answers
40 views

We have Anzograph database of version 3.1. I am running a SELECT query on empty graph named "DemoGraph", which does not have any tuple in it." I am running the below query: PREFIX rdf: &...
user27080506's user avatar
1 vote
0 answers
73 views

One SPARQL select query returns graph name while another does not return any data for the given example data. Below is the example data for the two queries. There are two named graphs - Main and ...
Vishal's user avatar
  • 51
2 votes
0 answers
43 views

I am running into a query that times out in the Wikidata Query Service (the https://query-main.wikidata.org service with federation). It is using a path query and a UNION with federation to the ...
Finn Årup Nielsen's user avatar
0 votes
0 answers
14 views

Below is my SPARQL query. I would like to get only those rows with ?dp which are associated to only ?id. If a ?dp is associated to more than 1 ?id, rows with these ?dp should be ignored. I tried GROUP ...
rshar's user avatar
  • 1,495
1 vote
0 answers
54 views

I am involved in a project and I would like to ask for some advice, opinion, ideas... The thing is that we have some data stored in a triple-store (GraphDB), with some related ontologies, SHACL rules ...
Otura's user avatar
  • 41
2 votes
0 answers
41 views

I have an RDF database which contains events. Events are associated with: a public key (hex string), a timestamp, and various metadata predicates. User activity generates new events. I have a query ...
cipres's user avatar
  • 196
2 votes
1 answer
139 views

[EDIT] It was my fault: I had garbled the configuration of Jena-Fuseki and the tdb2:unionDefaultGraph parameter was NOT set to true. So no wonder that Jena didn't return the expected results. Also, ...
tom lurge's user avatar
  • 127
3 votes
0 answers
97 views

I would like to be able to find all the resources that are an arbitrary path length removed from the resource I'm interested in, until there is a resource that meets a certain condition. This question ...
Joep van Genuchten's user avatar
1 vote
1 answer
146 views

I'm working with the TED (Tenders Electronic Daily) SPARQL endpoint (https://publications.europa.eu/webapi/rdf/sparql) to extract public procurement tender information. I have the following query ...
Christopher's user avatar
1 vote
0 answers
30 views

I want to retrieve all the related objects of an entity and their labels, but I'm struggling against how the label service and the distinction between statements and (actual) entities works in ...
Lightsong's user avatar
  • 355
1 vote
1 answer
153 views

I am trying to use SPARQL query to get the procurement URL or etenders Resource ID from TED import sparqldataframe import pandas as pd # Define the SPARQL query sparql_query = """ ...
Christopher's user avatar
0 votes
0 answers
27 views

I have installed anzograph frontend 3.1 , I am running a SELECT query with IN Filter having (1,2,3...,1000) values. The query execution is failing with below error - /opt/cambridgesemantics/...
user27080506's user avatar
1 vote
0 answers
72 views

I'm developing a tool based on Apache Jena 4.9.0 libraries to issue SELECT queries to a SPARQL endpoint, and execution resulted in error stated at the title (that is, "Endpoint returned Content-...
Yasunori's user avatar
2 votes
0 answers
82 views

I am in the process of converting a graph to relational database. The schema of the RDB I am converting to requires each person to have a unique ID in the form of an integer. I have unique ID's for ...
Robin's user avatar
  • 247
2 votes
0 answers
76 views

I'm querying the Wikidata from Apache Jena Fuseki. The objective is to get a monument by its coordinates. The coordinates I locally have are far more accurate. For instance, the monument Q29566893 in ...
Bambam's user avatar
  • 45
3 votes
1 answer
86 views

I have two local knowledge graphs in the form of turtle files. Let's say they look something like: File1 - people.ttl Bob a person ; feeds cat-1 ; trains dog-1 ; owns house-1 . File 2 - ...
Bradley Sutliff's user avatar
0 votes
0 answers
67 views

I am developing an application where I want to fetch some relations present in the AnzoGraph. These relations have some attributes and I want to fetch data by applying filter the attribute present on ...
Arpit Dongaonkar's user avatar
1 vote
1 answer
51 views

I have a sparql construct query that I use to construct various graphs based on the where clause. The sparql construct query works like this: it returns a model with all the different instances (or ...
Ines's user avatar
  • 59

1
2 3 4 5
125