-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from whikloj/FCREPO-2787
Changes to work with Fedora-Camel 5.0.0
- Loading branch information
Showing
65 changed files
with
1,659 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 34 additions & 32 deletions
66
fcrepo-audit-triplestore/src/test/resources/event_audit_resource.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
{ | ||
"@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" , | ||
|
||
"atTime" : { "@id" : "prov:atTime", "@type" : "xsd:dateTime" } , | ||
"identifier" : { "@id" : "dcterms:identifier" , "@type" : "@id" } , | ||
"isPartOf" : { "@id" : "dcterms:isPartOf", "@type" : "@id" } , | ||
"name" : { "@id" : "foaf:name", "@type" : "xsd:string" } , | ||
"wasAttributedTo" : { "@id" : "prov:wasAttributedTo", "@type" : "@id" } , | ||
"wasGeneratedBy" : { "@id" : "prov:wasGeneratedBy", "@type" : "@id" } | ||
} , | ||
|
||
"id" : "http://localhost/rest/audit/1234" , | ||
"id": "urn:uuid:3c834a8f-5638-4412-aa4b-35ea80416a11", | ||
"type" : [ | ||
"http://www.w3.org/ns/prov#Entity" , | ||
"http://fedora.info/definitions/v4/repository#Resource" , | ||
"http://fedora.info/definitions/v4/repository#Container" ] , | ||
"isPartOf" : "http://localhost/rest" , | ||
"wasGeneratedBy" : { | ||
"http://www.w3.org/ns/prov#Activity" , | ||
"https://www.w3.org/ns/activitystreams#Create" ], | ||
"name": "create resource", | ||
"published": "2016-05-19T17:17:40-04:00Z", | ||
"actor": [{ | ||
"type": ["Person"], | ||
"id": "info:fedora/fedoraAdmin" | ||
}, { | ||
"type": ["Application"], | ||
"name": "CLAW client/1.0" | ||
}], | ||
|
||
"object" : { | ||
"id" : "http://localhost/rest/audit/1234" , | ||
"type" : [ | ||
"http://www.w3.org/ns/prov#Activity" , | ||
"http://fedora.info/definitions/v4/event#ResourceCreation" ] , | ||
"identifier" : "urn:uuid:3c834a8f-5638-4412-aa4b-35ea80416a18" , | ||
"atTime" : "2016-05-19T17:17:39-04:00Z" } , | ||
"wasAttributedTo" : [ | ||
{ "type" : "http://www.w3.org/ns/prov#Person" , | ||
"name" : "fedo raAdmin" }, | ||
{ "type" : "http://www.w3.org/ns/prov#SoftwareAgent" , | ||
"name" : "CLAW client/1.0" } ] | ||
"http://www.w3.org/ns/prov#Entity" , | ||
"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/ldp#BasicContainer" ], | ||
"isPartOf" : "http://localhost/rest" | ||
}, | ||
|
||
"@context": ["https://www.w3.org/ns/activitystreams", { | ||
"prov": "http://www.w3.org/ns/prov#", | ||
"dcterms": "http://purl.org/dc/terms/", | ||
"type": "@type", | ||
"id": "@id", | ||
"isPartOf": { | ||
"@id": "dcterms:isPartOf", | ||
"@type": "@id" | ||
} | ||
}] | ||
} | ||
|
67 changes: 34 additions & 33 deletions
67
fcrepo-audit-triplestore/src/test/resources/event_audit_update.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
{ | ||
"@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" , | ||
|
||
"atTime" : { "@id" : "prov:atTime", "@type" : "xsd:dateTime" } , | ||
"identifier" : { "@id" : "dcterms:identifier" , "@type" : "@id" } , | ||
"isPartOf" : { "@id" : "dcterms:isPartOf", "@type" : "@id" } , | ||
"name" : { "@id" : "foaf:name", "@type" : "xsd:string" } , | ||
"wasAttributedTo" : { "@id" : "prov:wasAttributedTo", "@type" : "@id" } , | ||
"wasGeneratedBy" : { "@id" : "prov:wasGeneratedBy", "@type" : "@id" } | ||
} , | ||
|
||
"id" : "http://localhost/rest/audit" , | ||
"id": "urn:uuid:3c834a8f-5638-4412-aa4b-35ea80416a12", | ||
"type" : [ | ||
"http://www.w3.org/ns/prov#Entity" , | ||
"http://fedora.info/definitions/v4/repository#Resource" , | ||
"http://fedora.info/definitions/v4/repository#Container" ] , | ||
"isPartOf" : "http://localhost/rest" , | ||
"wasGeneratedBy" : { | ||
"http://www.w3.org/ns/prov#Activity" , | ||
"https://www.w3.org/ns/activitystreams#Update" ], | ||
"name": "update resource", | ||
"published": "2016-05-19T17:17:41-04:00Z", | ||
"actor": [{ | ||
"type": ["Person"], | ||
"id": "info:fedora/fedoraAdmin" | ||
}, { | ||
"type": ["Application"], | ||
"name": "CLAW client/1.0" | ||
}], | ||
|
||
"object" : { | ||
"id" : "http://localhost/rest/audit" , | ||
"type" : [ | ||
"http://www.w3.org/ns/prov#Activity" , | ||
"http://fedora.info/definitions/v4/event#ResourceModification" ] , | ||
"identifier" : "urn:uuid:3c834a8f-5638-4412-aa4b-35ea80416a18" , | ||
"atTime" : "2016-05-19T17:17:39-04:00Z" } , | ||
"wasAttributedTo" : [ | ||
{ "type" : "http://www.w3.org/ns/prov#Person" , | ||
"name" : "fedo raAdmin" }, | ||
{ "type" : "http://www.w3.org/ns/prov#SoftwareAgent" , | ||
"name" : "CLAW client/1.0" } ] | ||
} | ||
"http://www.w3.org/ns/prov#Entity" , | ||
"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/ldp#BasicContainer" ], | ||
"isPartOf" : "http://localhost/rest" | ||
}, | ||
|
||
"@context": ["https://www.w3.org/ns/activitystreams", { | ||
"prov": "http://www.w3.org/ns/prov#", | ||
"dcterms": "http://purl.org/dc/terms/", | ||
"type": "@type", | ||
"id": "@id", | ||
"isPartOf": { | ||
"@id": "dcterms:isPartOf", | ||
"@type": "@id" | ||
} | ||
}] | ||
} |
66 changes: 33 additions & 33 deletions
66
fcrepo-audit-triplestore/src/test/resources/event_delete_binary.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,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" , | ||
|
||
"atTime" : { "@id" : "prov:atTime", "@type" : "xsd:dateTime" } , | ||
"identifier" : { "@id" : "dcterms:identifier" , "@type" : "@id" } , | ||
"isPartOf" : { "@id" : "dcterms:isPartOf", "@type" : "@id" } , | ||
"name" : { "@id" : "foaf:name", "@type" : "xsd:string" } , | ||
"wasAttributedTo" : { "@id" : "prov:wasAttributedTo", "@type" : "@id" } , | ||
"wasGeneratedBy" : { "@id" : "prov:wasGeneratedBy", "@type" : "@id" } | ||
} , | ||
|
||
"id" : "http://localhost/rest/file1" , | ||
"id": "urn:uuid:3c834a8f-5638-4412-aa4b-35ea80416a13", | ||
"type" : [ | ||
"http://www.w3.org/ns/prov#Entity" , | ||
"http://fedora.info/definitions/v4/repository#Resource" , | ||
"http://fedora.info/definitions/v4/repository#Binary" ] , | ||
"isPartOf" : "http://localhost/rest" , | ||
"wasGeneratedBy" : { | ||
"http://www.w3.org/ns/prov#Activity" , | ||
"https://www.w3.org/ns/activitystreams#Delete" ], | ||
"name": "delete resource", | ||
"published": "2016-05-19T17:17:42-04:00Z", | ||
"actor": [{ | ||
"type": ["Person"], | ||
"id": "info:fedora/fedoraAdmin" | ||
}, { | ||
"type": ["Application"], | ||
"name": "CLAW client/1.0" | ||
}], | ||
|
||
"object" : { | ||
"id" : "http://localhost/rest/file1" , | ||
"type" : [ | ||
"http://www.w3.org/ns/prov#Activity" , | ||
"https://www.w3.org/ns/activitystreams#Delete" ] , | ||
"identifier" : "urn:uuid:3c834a8f-5638-4412-aa4b-35ea80416a18" , | ||
"atTime" : "2016-05-19T17:17:39-04:00Z" } , | ||
"wasAttributedTo" : [ | ||
{ "type" : "http://www.w3.org/ns/prov#Person" , | ||
"name" : "fedo raAdmin" }, | ||
{ "type" : "http://www.w3.org/ns/prov#SoftwareAgent" , | ||
"name" : "CLAW client/1.0" } ] | ||
} | ||
"http://www.w3.org/ns/prov#Entity" , | ||
"http://fedora.info/definitions/v4/repository#Resource" , | ||
"http://fedora.info/definitions/v4/repository#Binary" , | ||
"http://www.w3.org/ns/ldp#NonRDFSource" ], | ||
"isPartOf" : "http://localhost/rest" | ||
}, | ||
|
||
"@context": ["https://www.w3.org/ns/activitystreams", { | ||
"prov": "http://www.w3.org/ns/prov#", | ||
"dcterms": "http://purl.org/dc/terms/", | ||
"type": "@type", | ||
"id": "@id", | ||
"isPartOf": { | ||
"@id": "dcterms:isPartOf", | ||
"@type": "@id" | ||
} | ||
}] | ||
} |
68 changes: 34 additions & 34 deletions
68
fcrepo-audit-triplestore/src/test/resources/event_delete_resource.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
{ | ||
"@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" , | ||
|
||
"atTime" : { "@id" : "prov:atTime", "@type" : "xsd:dateTime" } , | ||
"identifier" : { "@id" : "dcterms:identifier" , "@type" : "@id" } , | ||
"isPartOf" : { "@id" : "dcterms:isPartOf", "@type" : "@id" } , | ||
"name" : { "@id" : "foaf:name", "@type" : "xsd:string" } , | ||
"wasAttributedTo" : { "@id" : "prov:wasAttributedTo", "@type" : "@id" } , | ||
"wasGeneratedBy" : { "@id" : "prov:wasGeneratedBy", "@type" : "@id" } | ||
} , | ||
|
||
"id" : "http://localhost/rest/auditions/1234" , | ||
"id": "urn:uuid:3c834a8f-5638-4412-aa4b-35ea80416a14", | ||
"type" : [ | ||
"http://www.w3.org/ns/prov#Entity" , | ||
"http://fedora.info/definitions/v4/repository#Resource" , | ||
"http://fedora.info/definitions/v4/repository#Container" , | ||
"http://example.org/CustomType" ] , | ||
"isPartOf" : "http://localhost/rest" , | ||
"wasGeneratedBy" : { | ||
"http://www.w3.org/ns/prov#Activity" , | ||
"https://www.w3.org/ns/activitystreams#Delete" ], | ||
"name": "delete resource", | ||
"published": "2016-05-19T17:17:43-04:00Z", | ||
"actor": [{ | ||
"type": ["Person"], | ||
"id": "info:fedora/fedoraAdmin" | ||
}, { | ||
"type": ["Application"], | ||
"name": "CLAW client/1.0" | ||
}], | ||
|
||
"object" : { | ||
"id" : "http://localhost/rest/auditions/1234" , | ||
"type" : [ | ||
"http://www.w3.org/ns/prov#Activity" , | ||
"https://www.w3.org/ns/activitystreams#Delete" ] , | ||
"identifier" : "urn:uuid:3c834a8f-5638-4412-aa4b-35ea80416a18" , | ||
"atTime" : "2016-05-19T17:17:39-04:00Z" } , | ||
"wasAttributedTo" : [ | ||
{ "type" : "http://www.w3.org/ns/prov#Person" , | ||
"name" : "fedo raAdmin" }, | ||
{ "type" : "http://www.w3.org/ns/prov#SoftwareAgent" , | ||
"name" : "CLAW client/1.0" } ] | ||
} | ||
"http://www.w3.org/ns/prov#Entity" , | ||
"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/ldp#BasicContainer" ], | ||
"isPartOf" : "http://localhost/rest" | ||
}, | ||
|
||
"@context": ["https://www.w3.org/ns/activitystreams", { | ||
"prov": "http://www.w3.org/ns/prov#", | ||
"dcterms": "http://purl.org/dc/terms/", | ||
"type": "@type", | ||
"id": "@id", | ||
"isPartOf": { | ||
"@id": "dcterms:isPartOf", | ||
"@type": "@id" | ||
} | ||
}] | ||
} |
Oops, something went wrong.