sparql query to show current workspace

18 views
Skip to first unread message

Kasia Kryczka

unread,
Apr 24, 2023, 8:00:52 AM4/24/23
to TopBraid Suite Users
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


Holger Knublauch

unread,
Apr 24, 2023, 8:04:59 AM4/24/23
to topbrai...@googlegroups.com
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


--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
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 topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/dcc57aef-3ed3-4024-846c-44f0c29dc18fn%40googlegroups.com.

Kasia Kryczka

unread,
Apr 24, 2023, 8:46:47 AM4/24/23
to TopBraid Suite Users
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

Holger Knublauch

unread,
Apr 24, 2023, 8:50:09 AM4/24/23
to topbrai...@googlegroups.com
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


Kasia Kryczka

unread,
Apr 24, 2023, 10:55:39 AM4/24/23
to TopBraid Suite Users
Thank you :) 
Reply all
Reply to author
Forward
0 new messages