@pavel - thanks for your example in the post above. How can I wrap this code that you have provided into a sparql statement that I can execute in Studio?
If you enable reasoning you can execute the following query assuming you have the subclass axioms in your schema.
select ?s where {
?s rdf:type :Drink
}
without reasoning based on what you've mentioned
select ?s where {
{ ?s rdf:type :Tea } union { ?s rdf:type :Coffee } union { ?s rdf:type :Drink }
}
These would be select statements. You seem to be getting a bit confused between data and queries. They can look similar if the data is serialized with the turtle format. It might clear up some confusion to look at RDF 1.1 Turtle and SPARQL 1.1 Overview
Thanks for your prompt reply. No I don't have "subclass axioms in my schema" yet... This is what I actually need.
Context - my knowledge graph is created by an NLP process that extracts data from documents and writes triples (i.e. INSERT DATA) to Stardog. So subClassOf statement is more like a post processing task - I don't know yet how to do.
You could use the new(ish) schema muti-tenancy feature so that the default schema doesn't include them but just include them in your queries where you need it.
Can you elaborate a little on the "ugly visualisation" of rdfs:subClassOf? A screenshot would help. Do you see only those axioms that you have added or also inferred rdfs:subClassOf links? Some old version of Studio used to clutter the schema viz screen with schema inferences but that was fixed some time ago.
P.S. As you know Linkurious will no longer support RDF databases ... ... So it would be really nice to see a similar Studio visualization capability but offered in a form of a wweb application