Hello,

I am trying to export a change history for a graph using GraphQL and the 
Teamwork Graph schema.

Using a query such as the following:

{
  changes {
    added {
      subject
      predicate
      object
    } 
  }
}

..the results appear as follows:

          {
            "subject": "http://www.example.org...";,
            "predicate": "http://www.w3.org/2004/02/skos/core#broader";,
            "object": "http://www.example.org...";
          }


Is there a way to embed a query (e.g., SPARQL) to derive human-readable 
labels for the subject, predicate, and object?

The goal is to display the labels (e.g., skos:prefLabel or sh:name) rather 
than the URIs, so that the output would look something like:

          {
            "subject": "Concept1",
            "predicate": "broader concept",
            "object": "Concept2"
          }

I have tried the *label* qualifier, such as:

{
  changes {
    added {
      subject:label
      predicate:label
      object:label
    } 
  }
}

...but this returns system labels, rather than human-readable labels; for 
example:

   "added": [
          {
            "subject": "<@5bbe53c8-e3f1-4007-b2d8-ec288ea3e0cd>",
            "predicate": "<@5bbe53c8-e3f1-4007-b2d8-ec288ea3e0cd>",
            "object": "<@5bbe53c8-e3f1-4007-b2d8-ec288ea3e0cd>"
          }

Alternatively, is there a different way to export the change history?

Thanks!


-- 
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/faa41e37-9140-4c22-af0c-0c975e52611dn%40googlegroups.com.

Reply via email to