Hi Holger, 

ok, but this still doesn't give me everything I need. I get like a part of 
all the results from imports.  Unfortynately I cannot post pictures. 
My ontology has   owl:imports <http://datashapes.org/graphql> ;
  owl:imports <http://topbraid.org/teamworkconstraints> ;
  owl:imports <urn:x-evn-master:ontology_1> ;
  owl:imports <urn:x-evn-master:ontology_2> ;
  owl:imports <urn:x-evn-master: ontology_3  > ;
  owl:imports <urn:x-evn-master: taxonomy_1> ;
  owl:imports <urn:x-evn-master: ontology_4  > ;
 
in the class hierarchy I can see more objects sth like that :

Data Object 
 - Abstract Object 
      - Level 2 Object 
          -Level 3 Object 
      -Level 2 Object 
- Conceptual Object 
   - Level 2 Object 
          -Level 3 Object 
      -Level 2 Object etc.
   

and all of them are from imports there are only 3 which are locally 
defined. 
I would like to get all with a sparql query if that's possible. 
Hope this clarifies a bit. 

Br,

Kasia
On Friday, January 5, 2024 at 9:05:47 AM UTC+1 Holger Knublauch wrote:

> In ADS you can write
>
> let instances = graph.withDataGraph(dataset.withImports(
> 'urn:x-evn-master:geo'), () => 
> graph.select(`
> SELECT ?instance
> WHERE {
> ?instance a skos:Concept .
> }
> `))
> instances.bindings
>
> Holger
>
> On 5 Jan 2024, at 8:46 am, Kasia Kryczka <[email protected]> wrote:
>
> Hi Holger, 
>
> thank you for quick reply. 
> The thing is I don't want to use the include imports checkbox. I want to 
> have a query which I can later use in ADS.
> Br,
>
> Kasia
>
>
> On Thursday, January 4, 2024 at 4:02:09 PM UTC+1 Holger Knublauch wrote:
>
>> Are you using the SPARQL endpoint? Then activate the Include Imports 
>> checkbox.
>>
>> From the SPARQL query panel, it would be something like
>>
>> SELECT ?instance
>> WHERE {
>>     ?instance rdf:type/rdfs:subClassOf* ex:SomeClass .
>> }
>>
>> which would also get the instances of the subclasses of the given class.
>>
>> Holger
>>
>>
>>
>> On 4 Jan 2024, at 3:52 pm, Kasia Kryczka <[email protected]> wrote:
>>
>> Hi,
>>
>> This might be a simple question but I got stuck. 
>>
>> I want to get all object from an ontology which are of a owl:Class but 
>> which are also defined in all the includes of that particular ontology. 
>>
>> Any help would be great.
>>
>> Thanks,
>>
>> Kasia
>>
>>
>>
>> -- 
>> The topics of this mailing list include TopBraid EDG and related 
>> technologies such as SHACL.
>> To post to this group, send email to [email protected]
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "TopBraid Suite Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/9315cc2f-a166-47b0-ab9d-7b320f2f527dn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/9315cc2f-a166-47b0-ab9d-7b320f2f527dn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
> -- 
> The topics of this mailing list include TopBraid EDG and related 
> technologies such as SHACL.
> To post to this group, send email to [email protected]
> --- 
> You received this message because you are subscribed to the Google Groups 
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/cb28593f-90cc-4fac-8f65-6c9a85ad7a5fn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/cb28593f-90cc-4fac-8f65-6c9a85ad7a5fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
The topics of this mailing list include TopBraid EDG and related technologies 
such as SHACL.
To post to this group, send email to [email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/4048808a-006c-4133-8db3-377fbcf39e5en%40googlegroups.com.

Reply via email to