Ok thanks for the clarification. I don't see any alternative to something like

SELECT ?this
WHERE {
}

which would show the currently selected asset. If that happens to be class then 
you could query the other superclasses for example using

SELECT ?class
WHERE {
        ?this rdfs:subClassOf* ?class .
}

But these queries would return different result each time.

There are no other ways to query the state of the user interface from SPARQL.

Holger


> On 24 Apr 2023, at 1:46 pm, Kasia Kryczka <[email protected]> wrote:
> 
> 
> 
> On Monday, April 24, 2023 at 2:04:59 PM UTC+2 Holger Knublauch wrote:
> Hi Kasia,
> 
> I am not sure whether you mean TopBraid EDG or TBC, but I assume EDG. Also 
> the term "workspace" is unclear to me, so I have to speculate a bit:
> 
> SPARQL queries cannot query the state of the user interface. The only thing 
> they have access to is the currently selected asset. Use the variable $this 
> to query that.
> 
> If this doesn't answer your question, please provide more details, i.e. what 
> specifically you want to query.
> 
> Holger
> 
> 
> 
>> On 24 Apr 2023, at 1:00 pm, Kasia Kryczka <[email protected] <>> wrote:
>> 
> 
>> Hi all, 
>> 
>> Is it possible to show the current workspace we are in, i.e., when we open a 
>> class hierarchy and go to an object I would like to use a query to show 
>> exactly where I am  (not the highest level of asset collection but the place 
>> I'm currently in). 
>> Unfortunately, I can't upload a picture. 
>> 
>> 
>> 
>> Is it possible to do that?
>> 
>> 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/dcc57aef-3ed3-4024-846c-44f0c29dc18fn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/dcc57aef-3ed3-4024-846c-44f0c29dc18fn%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 
> 
> Hi Holger, 
> 
> I'm a beginner with both TopBraid EDG and sparql so sorry for mistakes. I 
> meant  TopBraid EDG :)
> I wanted to use sparql but if it is not possible then I'll use what I have :)
> 
> I'll try to show this 
> Data Object
> Conceptual Object 
> Conceptual Object Component
> I'm in this place and I would like to see this URI
> I know we can show the currentGraph  of the but I was just wondering if it is 
> possible to show the uri of the place we are in. 
> 
> Hope this helps a little to understand what I mean.
> 
> Br,
> 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/59e256a6-5229-44a1-b20e-701ab2a5a089n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/59e256a6-5229-44a1-b20e-701ab2a5a089n%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/C0F6C390-72AF-4858-9ED1-A7770F7169F5%40topquadrant.com.

Reply via email to