Commit ba2918db authored by bseeger's avatar bseeger
Browse files

Merge branch 'minor_cleanup' into 'master'

Verify that the code works in the absence of xsd:string datatypes, a-la Fedora 4.7.1

This PR is really just about cleaning up the RDF documents used in tests -- removing extraneous prefixes and removing unnecessary xsd:string datatypes.

See merge request !84
parents 2574e38d 3a016796
@prefix premis: <http://www.loc.gov/premis/rdf/v1#> .
@prefix pcdm: <http://pcdm.org/models#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix iana: <http://www.iana.org/assignments/relation/> .
<http://localhost:8080/fcrepo/rest/pcdm/members/page1/files/file1> a fedora:Binary , fedora:Resource , ldp:NonRDFSource , pcdm:File ;
ebucore:filename "IMG_0107.jpg"^^<http://www.w3.org/2001/XMLSchema#string> ;
ebucore:hasMimeType "image/jpeg"^^<http://www.w3.org/2001/XMLSchema#string> ;
ebucore:filename "IMG_0107.jpg" ;
ebucore:hasMimeType "image/jpeg" ;
premis:hasSize "1565421"^^<http://www.w3.org/2001/XMLSchema#long> ;
premis:hasMessageDigest <urn:sha1:c9790c378f3589bfcfe092f834d212685f44fff9> ;
iana:describedby <http://localhost:8080/fcrepo/rest/pcdm/members/page1/files/file1/fcr:metadata> ;
fedora:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:lastModifiedBy "bypassAdmin" ;
fedora:createdBy "bypassAdmin" ;
fedora:created "2016-06-28T00:21:22.621Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:lastModified "2016-06-28T00:21:22.621Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ;
......
@prefix pcdm: <http://pcdm.org/models#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix iana: <http://www.iana.org/assignments/relation/> .
<http://localhost:8080/fcrepo/rest/pcdm> a fedora:Container , fedora:Resource , ldp:RDFSource , ldp:Container, pcdm:Object ;
skos:prefLabel "Top level pcdm:Object"@en ;
fedora:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:lastModifiedBy "bypassAdmin" ;
fedora:createdBy "bypassAdmin" ;
fedora:created "2016-06-28T00:14:06.677Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:lastModified "2016-06-28T00:16:25.55Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ;
......
@prefix pcdm: <http://pcdm.org/models#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix iana: <http://www.iana.org/assignments/relation/> .
<http://localhost:8080/fcrepo/rest/pcdm/members/page1> a fedora:Container , fedora:Resource , ldp:RDFSource , ldp:Container , pcdm:Object ;
rdfs:label "Page 1"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
rdfs:label "Page 1" ;
fedora:lastModifiedBy "bypassAdmin" ;
fedora:createdBy "bypassAdmin" ;
fedora:created "2016-06-28T00:16:25.552Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:lastModified "2016-06-28T00:56:43.618Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ;
......
@prefix pcdm: <http://pcdm.org/models#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix iana: <http://www.iana.org/assignments/relation/> .
<http://localhost:8080/fcrepo/rest/pcdm/members/page2> a fedora:Container , fedora:Resource , ldp:RDFSource , ldp:Container , pcdm:Object ;
rdfs:label "Page 2"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
rdfs:label "Page 2" ;
fedora:lastModifiedBy "bypassAdmin" ;
fedora:createdBy "bypassAdmin" ;
fedora:created "2016-06-28T00:16:25.552Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:lastModified "2016-06-28T00:56:43.618Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ;
......
......@@ -79,18 +79,15 @@ public class RouteTest extends CamelBlueprintTestSupport {
namespaces.put("xsi", "http://www.w3.org/2001/XMLSchema-instance");
final XPathExpression hasDescription = new XPathExpression(
"/oai_dc:dc/dc:description[@xsi:type='http://www.w3.org/2001/XMLSchema#string' and " +
"text()='First this, then that']");
"/oai_dc:dc/dc:description[text()='First this, then that']");
hasDescription.setNamespaces(namespaces);
final XPathExpression hasFormat1 = new XPathExpression(
"/oai_dc:dc/dc:format[@xsi:type='http://www.w3.org/2001/XMLSchema#string' and " +
"text()='1 volume (420 pages): photographs']");
"/oai_dc:dc/dc:format[text()='1 volume (420 pages): photographs']");
hasFormat1.setNamespaces(namespaces);
final XPathExpression hasFormat2 = new XPathExpression(
"/oai_dc:dc/dc:format[@xsi:type='http://www.w3.org/2001/XMLSchema#string' and " +
"text()='Pen and ink on linen']");
"/oai_dc:dc/dc:format[text()='Pen and ink on linen']");
hasFormat2.setNamespaces(namespaces);
final XPathExpression hasFormat3 = new XPathExpression(
......@@ -102,7 +99,7 @@ public class RouteTest extends CamelBlueprintTestSupport {
hasRights.setNamespaces(namespaces);
final XPathExpression hasTitle = new XPathExpression(
"/oai_dc:dc/dc:title[@xsi:type='http://www.w3.org/2001/XMLSchema#string' and text()='Manuscript Title']");
"/oai_dc:dc/dc:title[text()='Manuscript Title']");
hasTitle.setNamespaces(namespaces);
final XPathExpression hasSubject = new XPathExpression(
......
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:premis="http://www.loc.gov/premis/rdf/v1#"
xmlns:bf="http://id.loc.gov/ontologies/bibframe/"
xmlns:pcdm="http://pcdm.org/models#"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:webac="http://fedora.info/definitions/v4/webac#"
xmlns:acl="http://www.w3.org/ns/auth/acl#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:hydra="info:fedora/fedora-system:def/model#"
xmlns:audit="http://fedora.info/definitions/v4/audit#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:prov="http://www.w3.org/ns/prov#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:ore="http://www.openarchives.org/ore/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:fedora="http://fedora.info/definitions/v4/repository#"
xmlns:ebucore="http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#"
xmlns:ldp="http://www.w3.org/ns/ldp#"
xmlns:iana="http://www.iana.org/assignments/relation/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description rdf:about="http://localhost:8080/fcrepo/rest/acdc/manuscript">
<rdf:type rdf:resource="http://fedora.info/definitions/v4/repository#Container"/>
<rdf:type rdf:resource="http://fedora.info/definitions/v4/repository#Resource"/>
<rdf:type rdf:resource="http://pcdm.org/models#Object"/>
<dcterms:subject rdf:resource="http://localhost:8080/fcrepo/rest/test"/>
<fedora:lastModifiedBy rdf:datatype="http://www.w3.org/2001/XMLSchema#string">bypassAdmin</fedora:lastModifiedBy>
<bf:extent rdf:datatype="http://www.w3.org/2001/XMLSchema#string">1 volume (420 pages): photographs</bf:extent>
<skos:note rdf:datatype="http://www.w3.org/2001/XMLSchema#string">This is a sample manuscript record</skos:note>
<dcterms:tableOfContents rdf:datatype="http://www.w3.org/2001/XMLSchema#string">First this, then that</dcterms:tableOfContents>
<fedora:createdBy rdf:datatype="http://www.w3.org/2001/XMLSchema#string">bypassAdmin</fedora:createdBy>
<rdf:type rdf:resource="http://www.w3.org/ns/ldp#RDFSource"/>
<rdf:type rdf:resource="http://www.w3.org/ns/ldp#Container"/>
<fedora:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2016-06-20T19:17:15.823Z</fedora:created>
<bf:descriptionLanguage rdf:resource="http://id.loc.gov/vocabulary/iso639-2/eng"/>
<fedora:createdBy>bypassAdmin</fedora:createdBy>
<fedora:lastModified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2016-06-20T19:41:58.643Z</fedora:lastModified>
<fedora:lastModifiedBy>bypassAdmin</fedora:lastModifiedBy>
<fedora:hasParent rdf:resource="http://localhost:8080/fcrepo/rest/acdc"/>
<fedora:writable rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</fedora:writable>
<skos:note>This is a sample manuscript record</skos:note>
<skos:prefLabel>Manuscript Title</skos:prefLabel>
<dc:identifier>Amherst Manuscript # 681</dc:identifier>
<dcterms:abstract>This is a textual description of the manuscript</dcterms:abstract>
<dcterms:created rdf:datatype="http://id.loc.gov/datatypes/edtf/EDTF">2001-02-03</dcterms:created>
<dcterms:extent>1 volume (420 pages): photographs</dcterms:extent>
<dcterms:format rdf:resource="http://pcdm.org/file-format-types#Document"/>
<dcterms:isPartOf rdf:resource="http://acdc.amherst.edu/repository"/>
<dcterms:rights rdf:resource="http://rightsstatements.org/vocab/NKC/1.0/"/>
<skos:prefLabel rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Manuscript Title</skos:prefLabel>
<dcterms:identifier rdf:resource="doi:123456/12"/>
<dcterms:identifier rdf:resource="http://acdc.amherst.edu/id/abcdefg"/>
<dcterms:relatedItem rdf:resource="http://localhost:8080/fcrepo/rest/test"/>
<fedora:lastModified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2016-06-20T19:41:58.643Z</fedora:lastModified>
<dcterms:created rdf:datatype="http://id.loc.gov/datatypes/edtf/EDTF">2001-02-03</dcterms:created>
<dcterms:isPartOf rdf:resource="http://acdc.amherst.edu/repository"/>
<dcterms:language rdf:resource="http://id.loc.gov/vocabulary/iso639-2/eng"/>
<dcterms:abstract rdf:datatype="http://www.w3.org/2001/XMLSchema#string">This is a textual description of the manuscript</dcterms:abstract>
<dcterms:medium rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Pen and ink on linen</dcterms:medium>
<bf:heldBy rdf:resource="http://acdc.amherst.edu/"/>
<dcterms:medium>Pen and ink on linen</dcterms:medium>
<dcterms:relatedItem rdf:resource="http://localhost:8080/fcrepo/rest/test"/>
<dcterms:rights rdf:resource="http://rightsstatements.org/vocab/NKC/1.0/"/>
<dcterms:subject rdf:resource="http://localhost:8080/fcrepo/rest/test"/>
<dcterms:tableOfContents>First this, then that</dcterms:tableOfContents>
<dcterms:type rdf:resource="http://id.loc.gov/vocabulary/resourceTypes/txt"/>
<dcterms:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dcterms:type rdf:resource="http://vocab.getty.edu/aat/30002491"/>
<dc:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Amherst Manuscript # 681</dc:identifier>
<rdf:type rdf:resource="http://www.w3.org/ns/ldp#RDFSource"/>
<rdf:type rdf:resource="http://www.w3.org/ns/ldp#Container"/>
<fedora:writable rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</fedora:writable>
<fedora:hasParent rdf:resource="http://localhost:8080/fcrepo/rest/acdc"/>
<fedora:numberOfChildren rdf:datatype="http://www.w3.org/2001/XMLSchema#long">0</fedora:numberOfChildren>
<bf:descriptionLanguage rdf:resource="http://id.loc.gov/vocabulary/iso639-2/eng"/>
<bf:heldBy rdf:resource="http://acdc.amherst.edu/"/>
</rdf:Description>
</rdf:RDF>
......@@ -2,26 +2,24 @@
@prefix pcdm: <http://pcdm.org/models#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
<> a pcdm:Object ;
bf:extent "1 volume (420 pages): photographs"^^<http://www.w3.org/2001/XMLSchema#string> ;
skos:note "This is a sample manuscript record"^^<http://www.w3.org/2001/XMLSchema#string> ;
dcterms:tableOfContents "First this, then that"^^<http://www.w3.org/2001/XMLSchema#string> ;
bf:descriptionLanguage <http://id.loc.gov/vocabulary/iso639-2/eng> ;
skos:prefLabel "Manuscript Title" ;
skos:note "This is a sample manuscript record" ;
dc:identifier "Amherst Manuscript # 681" ;
dcterms:extent "1 volume (420 pages): photographs" ;
dcterms:tableOfContents "First this, then that" ;
dcterms:format pcdm:Document ;
dcterms:isPartOf <http://acdc.amherst.edu/> ;
dcterms:rights <http://rightsstatements.org/vocab/NKC/1.0/> ;
skos:prefLabel "Manuscript Title"^^<http://www.w3.org/2001/XMLSchema#string> ;
dcterms:identifier <doi:123456/12> , <http://acdc.amherst.edu/id/abcdefg> ;
dcterms:created "2001-02-03"^^<http://id.loc.gov/datatypes/edtf/EDTF> ;
dcterms:language <http://id.loc.gov/vocabulary/iso639-2/eng> ;
dcterms:abstract "This is a textual description of the manuscript"^^<http://www.w3.org/2001/XMLSchema#string> ;
dcterms:medium "Pen and ink on linen"^^<http://www.w3.org/2001/XMLSchema#string> ;
bf:heldBy <http://acdc.amherst.edu/> ;
dcterms:abstract "This is a textual description of the manuscript" ;
dcterms:medium "Pen and ink on linen" ;
dcterms:type <http://id.loc.gov/vocabulary/resourceTypes/txt> , <http://purl.org/dc/dcmitype/StillImage> , <http://vocab.getty.edu/aat/30002491> ;
dc:identifier "Amherst Manuscript # 681"^^<http://www.w3.org/2001/XMLSchema#string> .
bf:descriptionLanguage <http://id.loc.gov/vocabulary/iso639-2/eng> ;
bf:heldBy <http://acdc.amherst.edu/> .
@prefix pcdm: <http://pcdm.org/models#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
<http://localhost:8080/fcrepo/rest/test> a fedora:Container , fedora:Resource , pcdm:Object , ldp:RDFSource , ldp:Container ;
fedora:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:lastModifiedBy "bypassAdmin" ;
fedora:createdBy "bypassAdmin" ;
fedora:created "2016-05-26T13:17:02.151Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:lastModified "2016-06-15T14:29:02.609Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ;
fedora:hasParent <http://localhost:8080/fcrepo/rest/> ;
fedora:numberOfChildren "6"^^<http://www.w3.org/2001/XMLSchema#long> ;
skos:prefLabel "test resource"^^<http://www.w3.org/2001/XMLSchema#string> ;
dcterms:description "longer description"^^<http://www.w3.org/2001/XMLSchema#string> ;
skos:prefLabel "test resource" ;
dcterms:description "longer description" ;
ldp:contains <http://localhost:8080/fcrepo/rest/test/ab/d6/3b/2c/abd63b2c-32df-4ec2-902f-784fd809e021> , <http://localhost:8080/fcrepo/rest/test/f9/fc/ab/2f/f9fcab2f-03ba-4c79-a5ef-a6669bca6ed6> , <http://localhost:8080/fcrepo/rest/test/file> , <http://localhost:8080/fcrepo/rest/test/test2> , <http://localhost:8080/fcrepo/rest/test/image> , <http://localhost:8080/fcrepo/rest/test/file2> .
......@@ -49,13 +49,13 @@ public class PcdmServiceTest {
"<" + uri + "> a fedora:Binary , fedora:Resource , ldp:NonRDFSource, pcdm:File ;\n" +
"premis:hasSize \"1565421\"^^<http://www.w3.org/2001/XMLSchema#long> ;\n" +
"premis:hasMessageDigest <urn:sha1:c9790c378f3589bfcfe092f834d212685f44fff9> ;\n" +
"ebucore:hasMimeType \"image/jpeg\"^^<http://www.w3.org/2001/XMLSchema#string> ;\n" +
"ebucore:filename \"image.jpg\"^^<http://www.w3.org/2001/XMLSchema#string> ;\n" +
"ebucore:hasMimeType \"image/jpeg\" ;\n" +
"ebucore:filename \"image.jpg\" ;\n" +
"iana:describedby <" + uri + "/fcr:metadata> ;\n" +
"fedora:createdBy \"bypassAdmin\"^^<http://www.w3.org/2001/XMLSchema#string> ;\n" +
"fedora:createdBy \"bypassAdmin\" ;\n" +
"fedora:created \"2016-06-28T00:21:22.621Z\"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;\n" +
"fedora:lastModified \"2016-06-28T00:21:22.621Z\"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;\n" +
"fedora:lastModifiedBy \"bypassAdmin\"^^<http://www.w3.org/2001/XMLSchema#string> ;\n" +
"fedora:lastModifiedBy \"bypassAdmin\" ;\n" +
"fedora:writable \"true\"^^<http://www.w3.org/2001/XMLSchema#boolean> ;\n" +
"fedora:hasParent <http://localhost:8080/fcrepo/rest/> ;\n" +
"fedora:numberOfChildren \"0\"^^<http://www.w3.org/2001/XMLSchema#long> ;\n" +
......@@ -64,18 +64,13 @@ public class PcdmServiceTest {
}
private static InputStream getPcdmObject(final String uri, final List<String> members, final List<String> files) {
final StringJoiner joiner = new StringJoiner("", "@prefix premis: <http://www.loc.gov/premis/rdf/v1#> .\n" +
final StringJoiner joiner = new StringJoiner("",
"@prefix pcdm: <http://pcdm.org/models#> .\n" +
"@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n" +
"@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n" +
"@prefix fedora: <http://fedora.info/definitions/v4/repository#> .\n" +
"@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .\n" +
"@prefix ldp: <http://www.w3.org/ns/ldp#> .\n" +
"@prefix iana: <http://www.iana.org/assignments/relation/> .\n" +
"@prefix dc: <http://purl.org/dc/elements/1.1/> .\n" +
"<" + uri + "> a fedora:Container , fedora:Resource , pcdm:Object , ldp:RDFSource , ldp:Container ;\n" +
"fedora:lastModifiedBy \"bypassAdmin\"^^<http://www.w3.org/2001/XMLSchema#string> ;\n" +
"fedora:createdBy \"bypassAdmin\"^^<http://www.w3.org/2001/XMLSchema#string> ;\n" +
"fedora:lastModifiedBy \"bypassAdmin\" ;\n" +
"fedora:createdBy \"bypassAdmin\" ;\n" +
"fedora:created \"2016-06-28T00:14:06.677Z\"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;\n" +
"fedora:lastModified \"2016-06-28T00:16:25.55Z\"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;\n" +
"fedora:writable \"true\"^^<http://www.w3.org/2001/XMLSchema#boolean> ;\n" +
......@@ -93,18 +88,13 @@ public class PcdmServiceTest {
}
private static InputStream getPcdmCollection(final String uri, final List<String> members) {
final StringJoiner joiner = new StringJoiner("", "@prefix premis: <http://www.loc.gov/premis/rdf/v1#> .\n" +
final StringJoiner joiner = new StringJoiner("",
"@prefix pcdm: <http://pcdm.org/models#> .\n" +
"@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n" +
"@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n" +
"@prefix fedora: <http://fedora.info/definitions/v4/repository#> .\n" +
"@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .\n" +
"@prefix ldp: <http://www.w3.org/ns/ldp#> .\n" +
"@prefix iana: <http://www.iana.org/assignments/relation/> .\n" +
"@prefix dc: <http://purl.org/dc/elements/1.1/> .\n" +
"<" + uri + "> a fedora:Container , fedora:Resource , pcdm:Collection , ldp:RDFSource , ldp:Container ;\n" +
"fedora:lastModifiedBy \"bypassAdmin\"^^<http://www.w3.org/2001/XMLSchema#string> ;\n" +
"fedora:createdBy \"bypassAdmin\"^^<http://www.w3.org/2001/XMLSchema#string> ;\n" +
"fedora:lastModifiedBy \"bypassAdmin\" ;\n" +
"fedora:createdBy \"bypassAdmin\" ;\n" +
"fedora:created \"2016-06-28T00:14:06.677Z\"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;\n" +
"fedora:lastModified \"2016-06-28T00:16:25.55Z\"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;\n" +
"fedora:writable \"true\"^^<http://www.w3.org/2001/XMLSchema#boolean> ;\n" +
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment