Last updated a graph

14 views
Skip to first unread message

MSV

unread,
May 7, 2020, 4:30:57 AM5/7/20
to TopBraid Suite Users
Hi,
I update a graph container on weekly basis using swp.
Is there a property that can tell me when was the last update happened to that graph?

Holger Knublauch

unread,
May 7, 2020, 6:02:48 AM5/7/20
to topbrai...@googlegroups.com
If you have applied those updates through the usual transaction
mechanism against a graph that contains the user name (e.g.
<urn:x-evn-master:geo:Administrator> then the change history (TCH graph)
will contain a triple

<urn:x-evn-master:geo.tch> teamwork:lastChange ?change

where ?change has a triple

?change dcterms:created ?timeStamp

So this may get you what you're after:

SELECT ?timeStamp
WHERE {
    BIND (teamwork:currentTeamGraph() AS ?teamGraph)
    GRAPH ?teamGraph {
        ?teamGraph teamwork:lastChange/dcterms:created ?timeStamp .
    }
}

Holger

MSV

unread,
May 7, 2020, 6:22:12 AM5/7/20
to TopBraid Suite Users
thanks holger, will try this
Reply all
Reply to author
Forward
0 new messages