# Unknown body atom type: Auxillary\_Class\_Assertion

**URL:** <https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080>\
**Category:** Support\
**Created:** [June 7, 2018, 11:42am UTC](https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080 "2018-06-07T11:42:58Z")\
**Posts on this page:** 10\
**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:** [June 7, 2018, 11:42am UTC](https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080/1 "2018-06-07T11:42:58Z")

</div>

Hello

I am still developing my server to translate data into semantic and store them in StardDog, i have no more problem to populate and transfer, but when i want to query (SPARQL) i receive an error : “Unknown body atom type: AUXILIARY\_CLASS\_ASSERTION”

The error is received only with SPARQL query contains one (or more) Optional

The code used is :  
SelectQuery aQuery = starDogConnection.select(sparql1);  
aQuery.limit(10);  
String explain = aQuery.explain();  
System.out.println("explain : ");  
System.out.println(explain);  
System.out.println("execute : ");  
TupleQueryResult aResult = aQuery.execute();  
starDogConnection.close();

Thanks for your help

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [June 7, 2018, 12:17pm UTC](https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080/2 "2018-06-07T12:17:34Z")

</div>

Hi,

Could you send us (either here or privately) the ontology you’re using, as well as the `sparql1` query that you’re passing in to the select method?

---

<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:** [June 7, 2018, 1:32pm UTC](https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080/3 "2018-06-07T13:32:24Z")

</div>

The request :

> SELECT DISTINCT ?dataset ?model ?manufacturer ?kvpvalue ?kvpunitlabel ?tubecurrentvalue ?tubecurrentunitlabel ?exptimevalue ?exptimeunitlabel ?useofxraymodvalue  
> WHERE {  
> ?dataset rdf:type ontomedirad:CT\_image\_dataset .  
> ?dataset ontomedirad:is\_specified\_output\_of ?ctacq .  
> ?ctacq rdf:type ontomedirad:CT\_acquisition .  
> ?scanner rdf:type ontomedirad:CT\_scanner .  
> ?acqrole rdf:type ontomedirad:image\_acquisition\_role .  
> ?acqrole purl:BFO\_0000052 ?scanner.  
> ?acqrole purl:BFO\_0000054 ?ctacq .  
> OPTIONAL {?ctacq ontomedirad:has\_setting ?tubecurrent .  
> ?tubecurrent rdf:type dcm:113734 .  
> ?tubecurrent purl:IAO\_0000004 ?tubecurrentvalue .  
> OPTIONAL {?tubecurrent purl:IAO\_0000039 ?tubecurrentunit .  
> ?tubecurrentunit rdfs:label ?tubecurrentunitlabel }}.  
> OPTIONAL {?ctacq ontomedirad:has\_setting ?xraymodsetting .  
> ?xraymodsetting rdf:type ?xraymodclass .  
> ?xraymodclass rdfs:subClassOf\* dcm:113842 .  
> ?xraymodsetting purl:IAO\_0000004 ?useofxraymodvalue } .  
> OPTIONAL {?ctacq ontomedirad:has\_setting ?kvpsetting .  
> ?kvpsetting rdf:type dcm:113733 .  
> ?kvpsetting purl:IAO\_0000004 ?kvpvalue .  
> OPTIONAL {?kvpsetting purl:IAO\_0000039 ?kvpunit .  
> ?kvpunit rdfs:label ?kvpunitlabel }}.  
> OPTIONAL {?ctacq ontomedirad:has\_setting ?exptime .  
> ?exptime rdf:type dcm:113824 .  
> ?exptime purl:IAO\_0000004 ?exptimevalue .  
> OPTIONAL {?exptime purl:IAO\_0000039 ?exptimeunit .  
> ?exptimeunit rdfs:label ?exptimeunitlabel }}.  
> ?scanner ontomedirad:has\_manufacturer\_name ?manufacturer .  
> ?scanner ontomedirad:has\_model\_name ?model .  
> }

The same request directly on stardog in a web browser is functioning

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [June 11, 2018, 1:57pm UTC](https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080/4 "2018-06-11T13:57:14Z")

</div>

I see that you’re printing out the query plan (aQuery.explain()). Is that something you would be able to share here?

Would you also be able to share your ontology?

---

<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:** [June 11, 2018, 4:04pm UTC](https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080/5 "2018-06-11T16:04:21Z")

</div>

These are the files for help you

The Ontology : [https://drive.google.com/open?id=15eePjQtchnf5QFMsBsmI0uMHoagAQ9uk](https://drive.google.com/open?id=15eePjQtchnf5QFMsBsmI0uMHoagAQ9uk)  
The RDF Files from populated Graph : [RDFpopulated.zip - Google Drive](https://drive.google.com/open?id=10rcB7o6S8PRMpNhQ4AIyXCkzYEmv7JbM)  
Ontology and Populated Graphs are on the Stardog  
The explanation : [QuerryExplain.txt - Google Drive](https://drive.google.com/open?id=1jY4uYdGlo_xWM99tefTiL9D2ozXH7H_2)

Thanks for your help

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [June 12, 2018, 6:27pm UTC](https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080/6 "2018-06-12T18:27:10Z")

</div>

Thanks for the files. I am able to reproduce this issue in Stardog 5.3.1, and we’ll take a deeper look into it.

---

<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:** [June 25, 2018, 7:54am UTC](https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080/7 "2018-06-25T07:54:10Z")

</div>

Hi  
Did you find something help-full ?

Thanks

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [June 28, 2018, 4:35pm UTC](https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080/8 "2018-06-28T16:35:40Z")

</div>

I am seeing this error, but only when I enable reasoning. When you see results in the Stardog web console, is the Reasoning toggle above the query set to "on?" When I set it to "on" I get an error even in the web console.

It looks as if you have many axioms in your ontology that are incompatible with our (default and preferred) [SL reasoning level](https://www.stardog.com/docs/#_reasoning_types). Additionally, it appears that you have some conflicts with some of your classes and `rdfs:domain / rdfs:range`. Ex:

```auto
ASSERTED ontomedirad:CT_image_dataset_489d7a89-032e-41d6-97c1-c9c1f08da13c ontomedirad:has_IRDBB_WADO_handle "/pacs/studies/1.3.12.2.1107.5.1.4.50256.30000007112806125459300000013/series/1.3.12.2.1107.5.1.4.50256.30000007112806161356200001248"
   ASSERTED ontomedirad:has_IRDBB_WADO_handle rdfs:range xsd:anyURI
   ASSERTED ontomedirad:has_id rdfs:range xsd:string
   ASSERTED ontomedirad:has_IRDBB_WADO_handle rdfs:subPropertyOf ontomedirad:has_id

```

If I remove the range/domain triples from the ontology, I can at least get the query to run. It runs for quite a while, but this error isn't present.

---

<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:** [June 29, 2018, 2:12pm UTC](https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080/9 "2018-06-29T14:12:02Z")

</div>

We checked and you’re right. Thank you for your help

We will disable the reasoning for now and correct all troubles during the summer.  
Thank You

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [July 13, 2018, 2:12pm UTC](https://community.stardog.com/t/unknown-body-atom-type-auxillary-class-assertion/1080/10 "2018-07-13T14:12:04Z")

</div>

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