Sparql select doesn't bring any data after json-ld data load

I have successfully "data add" a json-ld file. I see db size in studio show 1k. When I query it bring zero rows back. JSON-LD file is full of SKOS triples. Strange the manual says:

Stardog provides two built-in database archetypes out-of-the-box: PROV and SKOS.

  • Do I need to set up database archetype ?... but I forgot what exactly I need to do.

The JSON-LD is an export from another tool.

Regards,
Radu

It's more likely that the query simply doesn't match the data. If you cannot share the data, please share the query and the query plan.

Best,
Pavel

select * where{?s ?p ?o}

when I do a stardog namespace list Test2 here is what I get:
+---------+---------------------------------------------+
| Prefix | Namespace |
+---------+---------------------------------------------+
| | http://api.stardog.com/ |
| owl | http://www.w3.org/2002/07/owl# |
| rdf | http://www.w3.org/1999/02/22-rdf-syntax-ns# |
| rdfs | http://www.w3.org/2000/01/rdf-schema# |
| stardog | tag:stardog:api: |
| xsd | XML Schema |
+---------+---------------------------------------------+

Where is SKOS and PROV?

I am running Stardog v.7.0.3

Try

select * from <tag:stardog:api:context:all> { ?s ?p ?o }

Yes - that brings tons of data! Thanks

P.S. The above query is not that portable :wink:

What would be the equivalent delete all statement?

Correct, but select * { graph ?g { ?s ?p ?o } } is.

The point is that if you load data in named graphs, you should also query named graphs (and not the default graph).

Best,
Pavel

clear all

Best,
Pavel

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.