Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to work with Fedora-Camel 5.0.0 #143

Merged
merged 3 commits into from
Mar 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ fcrepo4-data/
*transaction.log
*~

# Eclipse files
**/.settings
**/.classpath
**/.checkstyle
**/.project

# Mobile Tools for Java (J2ME)
.mtj.tmp/

Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ script:
- sudo service resolvconf stop
- sudo service sshguard stop
- sudo service ssh stop
- mvn install -B -V
- mvn install -B -V -q

notifications:
irc: "irc.freenode.org#fcrepo"
Expand Down
2 changes: 1 addition & 1 deletion blueprint/fcrepo-audit-triplestore-blueprint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>fcrepo-camel-toolbox-blueprint</artifactId>
<groupId>org.fcrepo.camel</groupId>
<version>4.8.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>

<artifactId>fcrepo-audit-triplestore-blueprint</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion blueprint/fcrepo-fixity-blueprint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>fcrepo-camel-toolbox-blueprint</artifactId>
<groupId>org.fcrepo.camel</groupId>
<version>4.8.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>

<artifactId>fcrepo-fixity-blueprint</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion blueprint/fcrepo-indexing-solr-blueprint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>fcrepo-camel-toolbox-blueprint</artifactId>
<groupId>org.fcrepo.camel</groupId>
<version>4.8.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>

<artifactId>fcrepo-indexing-solr-blueprint</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion blueprint/fcrepo-indexing-triplestore-blueprint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>fcrepo-camel-toolbox-blueprint</artifactId>
<groupId>org.fcrepo.camel</groupId>
<version>4.8.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>

<artifactId>fcrepo-indexing-triplestore-blueprint</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion blueprint/fcrepo-ldpath-blueprint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>fcrepo-camel-toolbox-blueprint</artifactId>
<groupId>org.fcrepo.camel</groupId>
<version>4.8.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>

<artifactId>fcrepo-ldpath-blueprint</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion blueprint/fcrepo-reindexing-blueprint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>fcrepo-camel-toolbox-blueprint</artifactId>
<groupId>org.fcrepo.camel</groupId>
<version>4.8.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>

<artifactId>fcrepo-reindexing-blueprint</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion blueprint/fcrepo-serialization-blueprint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>fcrepo-camel-toolbox-blueprint</artifactId>
<groupId>org.fcrepo.camel</groupId>
<version>4.8.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>

<artifactId>fcrepo-serialization-blueprint</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion blueprint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>fcrepo-camel-toolbox</artifactId>
<groupId>org.fcrepo.camel</groupId>
<version>4.8.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>

<artifactId>fcrepo-camel-toolbox-blueprint</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion fcrepo-audit-triplestore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.fcrepo.camel</groupId>
<artifactId>fcrepo-camel-toolbox</artifactId>
<version>4.8.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>

<artifactId>fcrepo-audit-triplestore</artifactId>
Expand Down
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 fcrepo-audit-triplestore/src/test/resources/event_audit_update.json
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"
}
}]
}
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"
}
}]
}
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"
}
}]
}
Loading