Archived

If you are looking for the last documentation in the 4.x series, see 4.7.5. Looking for another version? See all documentation.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Fedora generates event messages when a resource is created, updated or deleted.

Below is a example message when a resource is created:

Message Headers:

org.fcrepo.jms.user => bypassAdmin
org.fcrepo.jms.eventID => urn:uuid:d0f9d030-8fac-474c-882c-0858a7f948ef
org.fcrepo.jms.identifier => /test1234
org.fcrepo.jms.timestamp => 1519419333657
org.fcrepo.jms.baseURL => http://localhost:8080/rest
org.fcrepo.jms.resourceType => http://www.w3.org/ns/ldp#Container,http://fedora.info/definitions/v4/repository#Resource,http://fedora.info/definitions/v4/repository#Container,http://www.w3.org/ns/ldp#RDFSource
org.fcrepo.jms.eventType => http://fedora.info/definitions/v4/event#ResourceCreation,http://fedora.info/definitions/v4/event#ResourceModification
org.fcrepo.jms.userAgent => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36


Message Body:

{"id":"http://localhost:8080/rest/test1234",
 "type": [
	"http://www.w3.org/ns/ldp#Container",
	"http://fedora.info/definitions/v4/repository#Resource",
	"http://fedora.info/definitions/v4/repository#Container",
	"http://www.w3.org/ns/ldp#RDFSource",
	"http://www.w3.org/ns/prov#Entity"],
  "isPartOf":"http://localhost:8080/rest",
  "wasGeneratedBy":{"type":["http://fedora.info/definitions/v4/event#ResourceCreation",
                            "http://fedora.info/definitions/v4/event#ResourceModification",
                            "http://www.w3.org/ns/prov#Activity"],
                    "identifier":"urn:uuid:d0f9d030-8fac-474c-882c-0858a7f948ef",
                    "atTime":"2018-02-23T20:55:33.657Z"},
  "wasAttributedTo":[{"type":"http://www.w3.org/ns/prov#Person","name":"bypassAdmin"},
                     {"type":"http://www.w3.org/ns/prov#SoftwareAgent","name":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"}],
  "@context":{"prov":"http://www.w3.org/ns/prov#",
              "foaf":"http://xmlns.com/foaf/0.1/",
              "dcterms":"http://purl.org/dc/terms/",
              "xsd":"http://www.w3.org/2001/XMLSchema#",
              "type":"@type",
              "id":"@id",
              "name":{"@id":"foaf:name","@type":"xsd:string"},
              "identifier":{"@id":"dcterms:identifier","@type":"@id"},
              "isPartOf":{"@id":"dcterms:isPartOf","@type":"@id"},
              "atTime":{"@id":"prov:atTime","@type":"xsd:dateTime"},
              "wasAttributedTo":{"@id":"prov:wasAttributedTo","@type":"@id"},
              "wasGeneratedBy":{"@id":"prov:wasGeneratedBy","@type":"@id"}
             }
}



See :

How to Inspect Event Messages Generated by Fedora

  • No labels