6,225 questions
Score of 4
0 answers
70 views
AnzoGraph: first SELECT on a newly created empty graph throws an exception "bad request (400)"
I’m using AnzoGraph DB (Altair Graph Lakehouse) version 3.1. While testing, I noticed unexpected behavior when querying an empty graph.
Steps to reproduce
Create a new graph named DemoGraph from the ...
Score of -2
1 answer
75 views
Amazon Neptune RDF-star support for edge properties in RDF graphs
I am currently working with an Amazon Neptune RDF graph and evaluating a use case that requires storing properties on edges using RDF-star.
Specifically, I want to create a relationship (edge triple) ...
Score of 1
1 answer
116 views
How to use a comment as SPECIAL_TOKEN in JavaCC for a jjt in the Tree builder Visitor
I developed a SPARQL grammar parser, which parse a SPARQL request to create a model of the request. I am using a jjt and a Visitor to visit over the parsed content. As of now, I am almost handling ...
Score of 1
0 answers
49 views
Get the raw string of a numeric Wikidata value with SPARQL
For example the following query returns only the value "57" but I need to get the original raw value stored as string ("+57.000").
select ?value (str(?value) as ?strValue) ?amount ...
Score of 0
1 answer
82 views
Activating Basic Authentication in Virtuoso 7 Open Source for sparql-auth Endpoint
I am using a C# program to access a Virtuoso Sparql Endpoint (sparql-auth). I installed the latest version 7 of the Open Source edition. In my C# program, I use HttpClient with Basic Authentication. ...
Score of 1
1 answer
109 views
How to measure the duration of update queries in Apache Jena Fuseki?
I am currently investigating Apache Jena Fuseki (latest release, version 5.6.0) for a project on Knowledge Graphs. Therefore, I got it running on a Docker container.
I want to measure the time of a ...
Score of 0
1 answer
57 views
Sparql with comunica from Wikidata
SELECT ?item ?itemLabel
WHERE
{
?item wdt:P31 wd:Q146.
}
I have this query, taken from Wikidata as an example. I save it in a file query.sparql.
When I try to run the query from the console:
...
Score of 0
1 answer
77 views
Limiting cardinality of predicates in SPARQL queries
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 ...
Score of 0
0 answers
80 views
I'd like to filter names by initials on Wikidata Query Service
I'm trying to find individuals on the Wikidata Query Service, and I'd like to filter results from certain initials (e.g. if a family name starts with "B" and at least one given name with &...
Score of 0
0 answers
47 views
Wikidata SPARQL request fails with : Headless value factory should not be asked for its namespace
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:...
Score of 0
1 answer
69 views
How to do a count() using jena SelectBuilder [closed]
I want to use QueryBuild to build a query with a count().
What I tried, and Chat GPT suggested, was to use buildDefaultSelectBuilder().addVar(count(..) as ..).
But that treats the count() as a var ?...
Score of 2
0 answers
80 views
Why does this query timeout while this similar one does not?
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 ...
Score of 1
1 answer
62 views
Extracting DOIs from WikiData entries via Wikidata Query Service
I'm having trouble consistently retrieving DOIs for WikiData entries for scientific articles via the query service.
As a minimal working example, the following will return the DOI for the entry ...
Score of 1
1 answer
113 views
Does RDFLib offer static/semantic validation for SPARQL (beyond parseQuery)?
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 ...
Score of 1
0 answers
94 views
Multiple language labels in sparql query on wikidata
I want to query wikidata entities and their labels in multiple languages. But for some reason querying the labels is very inperformant.
My base query looks like this (find 3 life forms that have ...