# Request on owl:Class

**URL:** <https://community.stardog.com/t/request-on-owl-class/1306>\
**Category:** Bug\
**Created:** [September 20, 2018, 8:32am UTC](https://community.stardog.com/t/request-on-owl-class/1306 "2018-09-20T08:32:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueAngel35](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/blueangel35/32/301_2.png) [@blueAngel35](https://community.stardog.com/u/blueAngel35)\
**Post date:** [September 20, 2018, 8:32am UTC](https://community.stardog.com/t/request-on-owl-class/1306/1 "2018-09-20T08:32:08Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [September 20, 2018, 10:12am UTC](https://community.stardog.com/t/request-on-owl-class/1306/2 "2018-09-20T10:12:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![blueAngel35](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/blueangel35/32/301_2.png) [@blueAngel35](https://community.stardog.com/u/blueAngel35)\
**Post date:** [September 20, 2018, 12:06pm UTC](https://community.stardog.com/t/request-on-owl-class/1306/3 "2018-09-20T12:06:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [September 20, 2018, 12:32pm UTC](https://community.stardog.com/t/request-on-owl-class/1306/4 "2018-09-20T12:32:57Z")

</div>

I had to ask the easy questions first 🙂

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.

---

<div class="post-metadata">

**Author:** ![blueAngel35](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/blueangel35/32/301_2.png) [@blueAngel35](https://community.stardog.com/u/blueAngel35)\
**Post date:** [September 20, 2018, 1:40pm UTC](https://community.stardog.com/t/request-on-owl-class/1306/6 "2018-09-20T13:40:09Z")

</div>

I find the problem (sorry and thank you)

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [September 20, 2018, 2:37pm UTC](https://community.stardog.com/t/request-on-owl-class/1306/7 "2018-09-20T14:37:56Z")

</div>

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