biobricks-ai / biobricks-okg

An open knowledge graph for BioBricks.ai
MIT License
1 stars 0 forks source link

getting graph names #26

Open tomlue opened 8 months ago

tomlue commented 8 months ago

https://github.com/biobricks-ai/biobricks-okg/blob/main/report/2024-01-15/graph-names.rq

This query gives me an error.

Virtuoso 37000 Error SP031: SPARQL compiler: The list of return values contains '*' but the pattern does not contain variables

SPARQL query: define sql:big-data-const 0

output-format:text/html

define sql:signal-void-variables 1 SELECT DISTINCT ?g_prefix WHERE { GRAPH ?g { } BIND( URI(STRBEFORE(STR(?g), '?file=')) AS ?g_prefix ) } ORDER BY ?g_prefix

If I update the query to the below I get a timeout. Is there no efficient way to get the graph names in our graph?

Virtuoso 42000 Error The estimated execution time 9360 (sec) exceeds the limit of 400 (sec).

SPARQL query: SELECT DISTINCT ?g_prefix WHERE { GRAPH ?g { ?s ?p ?o } BIND( URI(STRBEFORE(STR(?g), '?file=')) AS ?g_prefix ) } ORDER BY ?g_prefix