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, 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
>
>
>
> [image: 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/
>>
>> 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
>>  
>> <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 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
>  
> <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 topbraid-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/2085aec2-a181-4f73-a696-ce6cf3dc3c5dn%40googlegroups.com.

Reply via email to