Skip to content

Commit

Permalink
Adding LDP namespace to managed mixin namespace list
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed Apr 17, 2014
1 parent 311b19a commit e5fa38b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Expand Up @@ -702,6 +702,20 @@ public void testUpdateObjectGraphWithProblems() throws Exception {

}

@Test
public void testFilteredLDPTypes() throws Exception {
String pid = randomUUID().toString();
createObject(pid);

HttpPut put = new HttpPut(serverAddress + pid);
put.addHeader("Content-Type", "text/rdf+n3");
final BasicHttpEntity e = new BasicHttpEntity();
e.setContent(new ByteArrayInputStream(
"<> a <http://www.w3.org/ns/ldp#IndirectContainer>".getBytes()));
put.setEntity(e);
assertEquals(204, getStatus(put));
}

@Test
public void testReplaceGraph() throws Exception {
client.execute(postObjMethod("FedoraReplaceGraph"));
Expand Down
Expand Up @@ -70,11 +70,16 @@ public final class RdfLexicon {
public static final String PREMIS_NAMESPACE =
"http://www.loc.gov/premis/rdf/v1#";

/**
* Linked Data Platform namespace.
*/
public static final String LDP_NAMESPACE = "http://www.w3.org/ns/ldp#";

/**
* The namespaces that the repository manages internally.
*/
public static final Set<String> managedNamespaces = of(RESTAPI_NAMESPACE,
REPOSITORY_NAMESPACE, JCR_NAMESPACE);
REPOSITORY_NAMESPACE, JCR_NAMESPACE, LDP_NAMESPACE);

/**
* Is this namespace one that the repository manages?
Expand Down Expand Up @@ -160,7 +165,6 @@ public final class RdfLexicon {
SEARCH_OFFSET, SEARCH_TERMS, SEARCH_HAS_MORE);

// Linked Data Platform
public static final String LDP_NAMESPACE = "http://www.w3.org/ns/ldp#";
public static final Property PAGE =
createProperty(LDP_NAMESPACE + "Page");
public static final Property PAGE_OF =
Expand Down

0 comments on commit e5fa38b

Please sign in to comment.