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
On 2021-09-15 7:37 pm, [email protected] wrote:
Thanks Holger for your response. Could you please give a SPARQL
example on joining actual data graph and teamwork graphs to get the
labels of the resources (subject, predicate or object)?
Thanks,
Sanjeev
On Monday, September 13, 2021 at 4:51:15 PM UTC+5:30 Holger Knublauch
wrote:
On 2021-09-13 8:30 pm, [email protected] 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
graphql_chage_history.PNG
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/
<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, [email protected]
<http://gmail.com> <[email protected]> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/08254afa-c076-468d-9cea-573eb5fad4d0n%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/08254afa-c076-468d-9cea-573eb5fad4d0n%40googlegroups.com?utm_medium=email&utm_source=footer>.
<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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/9d9e4760-201b-4d26-a04f-dae432e32c17n%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/9d9e4760-201b-4d26-a04f-dae432e32c17n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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/2085aec2-a181-4f73-a696-ce6cf3dc3c5dn%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/2085aec2-a181-4f73-a696-ce6cf3dc3c5dn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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/47123626-291f-777c-8d8e-69dc3591dad2%40topquadrant.com.