There is a change resource that has the time of a change.
<urn:x-change:2021-05-14T21-56-29.119ZAdministrator-61d2232b-2b12-493b-92e0-815d259e907d>
rdf:type teamwork:Change ;
dcterms:created "2021-05-14T21:56:29.119Z"^^xsd:dateTime ;
sioc:has_creator <urn:x-tb-users:Administrator> ;
Change resource is a subject of added and deleted triples in this transaction. These triples capture what exactly was added or deleted.
Let’s say, an alternative label was added for Raleigh. You will get:
<urn:x-change:2021-05-14T21-56-29.119ZAdministrator-61d2232b-2b12-493b-92e0-815d259e907d>
rdf:type teamwork:Change ;
dcterms:created "2021-05-14T21:56:29.119Z"^^xsd:dateTime ;
sioc:has_creator <urn:x-tb-users:Administrator> ;
teamwork:added [
teamwork:object "new synonym" ;
teamwork:predicate skos:altLabel ;
teamwork:subject g:Raleigh ;
] ;
If you looking for the last change only, then you need to go for the most recent date among the change records that did something with each concept - in the example above g:Raleigh. There may be multiple changes where g:Raleigh is the value of a teamwork:subject, you want to select the one with the greatest dcterms:created to determine the last date/time of a change.
If a change happened in a working copy, the change resource will have the tag property which value is a working copy. For example.
<urn:x-change:2021-05-14T21-56-29.119ZAdministrator-61d2232b-2b12-493b-92e0-815d259e907d>
teamwork:tag <urn:x-tags:basic_workflow___x__administrator_on_2021_05_14_17_55_39>.
If you want to include only committed changes and go by the date of commit, not the date a change was made, this adds some complexity since the most recent change is not necessary the one where the edit happened most recently. You need to:
First, select only changes that are associated with a workflow/working copy that is committed {?wc. teamwork:status teamwork:Committed}
And look for the date of commit as opposed to the date of a particular change. The workflow captures all its status changes, this gives you the date of commit.
For example,
<urn:x-tags:basic_workflow___x__administrator_on_2021_05_14_17_55_39>
rdf:type teamwork:Tag ;
teamwork:status teamwork:Committed ;
teamwork:statusChange [
dcterms:created "2021-05-14T18:02:37.739-04:00"^^xsd:dateTime ;
sioc:has_creator <urn:x-tb-users:Administrator> ;
teamwork:newStatus teamwork:FrozenForReview ;
] ;
teamwork:statusChange [
dcterms:created "2021-05-14T18:03:43.626-04:00"^^xsd:dateTime ;
sioc:has_creator <urn:x-tb-users:Administrator> ;
teamwork:newStatus teamwork:Approved ;
] ;
teamwork:statusChange [
dcterms:created "2021-05-14T18:04:00.756-04:00"^^xsd:dateTime ;
sioc:has_creator <urn:x-tb-users:Administrator> ;
teamwork:newStatus teamwork:Committed ;
] ;