zazuko / vscode-sparql-notebook

Visual Studio Code SPARQL Notebook Extension
https://marketplace.visualstudio.com/items?itemName=Zazuko.sparql-notebook
Other
26 stars 8 forks source link

Error for direct select clause binding when running on a file #66

Open kvistgaard opened 1 year ago

kvistgaard commented 1 year ago

I get this image Not happy with the last binding. Runs fine when not on a file. Is that an Oxigraph issue?

Here's the query:

PREFIX owl: <http://www.w3.org/2002/07/owl#> 
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 

SELECT
(COUNT (DISTINCT ?class) AS ?NoC)
(COUNT (DISTINCT ?oProperty) AS ?NoP)
(COUNT (DISTINCT ?dProperty) AS ?DoP)
(COUNT (DISTINCT ?aProperty) AS ?AoP)
(?NoP+?DoP+?AoP AS ?TnP)
{   ?class a owl:Class .
    ?oProperty a owl:ObjectProperty .
    ?dProperty a owl:DatatypeProperty .
    OPTIONAL {?aProperty a owl:AnnotationProperty} .
}
ktk commented 1 year ago

Most likely, did you try it on standalone Oxigraph?