--
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/08254afa-c076-468d-9cea-573eb5fad4d0n%40googlegroups.com.
<Change History.PNG>
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/95f8cb26-b30a-40c3-9cdb-8d3c072eef0bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/ee906ccf-356f-400c-9751-44727d31f738n%40googlegroups.com.
<Geo_Antarctica.PNG>
On 2021-09-13 8:30 pm, deviredd...@gmail.com wrote:
Thanks Irene for your response. I have a question on getting human readable labels from the results of Change History GraphQL. I see that in SPARQL there is method "afn:localname" to get the local name(prefLabel) of a URI resource(skos:prefLabel ) but it is not the actual human readable label (preferred label) seen in EDG UI. Now my question is that, with GraphQL is there a way to get the human readable labels(as seen in EDG UI) of URI resources(Subject/Predicate/Object) in Change History results(please check the below screenshot)?
No, you can only get the comment of the change, e.g.
To get the labels of the resources (subject, predicate or
object), you would need to do a join with the actual data graph,
and that is not possible with the current GraphQL endpoint for the
team graph. SPARQL would be better for that purpose. The GraphQL
endpoint is further limited in that it only renders
subject/predicate/object as strings, without further metadata such
as the exact datatype.
Also keep in mind that resources may have been deleted, in which
case even the main graph wouldn't have a suitable label anymore.
That's also why the Change History panel only shows the Turtle
source code of what has been changed - as this is the only
reliable info that can be derived at that stage.
Holger
Thanks,
Sanjeev
--On Tuesday, September 7, 2021 at 6:53:46 PM UTC+5:30 Irene Polikoff wrote:
For GraphQL, Go to Export -> GraphQL Queries and select “as Teamwork Graph” - this is the change history graph.
For examples on querying change history, see https://www.topquadrant.com/querying-topbraid-edg-with-graphql/
David already gave you some examples of SPARL queries. If you go to Server Administration -> Available Web Services and then check Teamworks SPIN Templates, you will see additional examples that have been templated. For example:
On Sep 3, 2021, at 5:46 AM, deviredd...@gmail.com <deviredd...@gmail.com> wrote:
Hi,We are looking to generate reports on change history of a taxonomy from TopBraid EDG. I see that there is a view(please check the attachment) in EDG that shows change history of the taxonomy. Now my question is that is there an out of box service to fetch those change history details or could you please share the SPARQL/GraphQL that is used for the "Change History" view in EDG UI? Could some one please help?
Thanks,
Sanjeev
--
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/08254afa-c076-468d-9cea-573eb5fad4d0n%40googlegroups.com.
<Change History.PNG>
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/9d9e4760-201b-4d26-a04f-dae432e32c17n%40googlegroups.com.
This is for subject(s):
Here is a variation that does either added subject, predicate or object:
PREFIX teamwork: <http://topbraid.org/teamwork#>
PREFIX ui: <http://uispin.org/ui#>
SELECT DISTINCT ?resource ?label
WHERE {
GRAPH <urn:x-evn-master:geo.tch> {
?change a teamwork:Change .
?change teamwork:added ?added .
?added teamwork:subject|teamwork:predicate|teamwork:object
?resource .
FILTER isIRI(?resource)
}
BIND (ui:label(?resource) AS ?label)
}
HTH
Holger
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/2085aec2-a181-4f73-a696-ce6cf3dc3c5dn%40googlegroups.com.