Request on owl:Class

Hi (sorry to ask again)

I have a trouble with a request :

SELECT DISTINCT ?label  ?class WHERE {
        ?class rdf:type owl:Class .
	?class ontomedirad:has_MIME_type ?label .
        ?class skos:prefLabel ?classlabel .
        FILTER (?classlabel = "zipped imageJ contours format"@en) 
}

These request has no result but the same request in Protégé software with the same RDF files inside send a result :

"application/zip"^^<http://www.w3.org/2001/XMLSchema#string> http://medicis.univ-rennes1.fr/ontologies/ontospm/OntoMEDIRAD.owl#zipped_imageJ_contours_format

I tried these request in stardog

 SELECT DISTINCT  ?class WHERE {
        ?class rdf:type owl:Class .
}

And i still have nothing, but i have results in protégé

I don't understand, do you have any idea ?

There doesn’t appear to be anything particularly odd about the query. I’d first check to see if the there is actually any data loaded. (Perhaps there was a parsing error that you missed and the data didn’t actually load. The second thing I’d check is to see if the data is loaded into a named graph and the settings for the default graph and see if it’s set to query all graphs. You can either change that setting or your query to use the named graph.

I'had the same idea (before asking help here) and i've erased a database and i've added the ontology and all the RDF files with a bash command.
The result was the same.

And no i don't use named graphs.

I had to ask the easy questions first :slight_smile:

Is there any chance you can share your data?
Can you share the exact commands you used to create the database and load the data?
Do you have and if you do is there anything in your stardog.properties file?
What version of Stardog are you using?
What platform are you on? Windows, Linux, etc...
Are you running the query with or without reasoning?

Running stardog query explain might give you some insight into what's going on.

I find the problem (sorry and thank you)

Glad to hear you found the problem. No apology necessary.