Skip to content

Commit

Permalink
fixed dc term namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
fasseg committed May 17, 2013
1 parent 64e7897 commit 0d543c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -201,7 +201,7 @@ public FieldSearchResult search(final Query query, final int offSet,
public static String buildQueryString() {
//TODO expand to more fields
final String sqlExpression =
"SELECT * FROM [" + FEDORA_RESOURCE + "] WHERE PATH([" + FEDORA_RESOURCE + "]) like $sterm OR [dc:identifier] like $sterm OR [dc:title] like $sterm";
"SELECT * FROM [" + FEDORA_RESOURCE + "] WHERE [dc:identifier] like $sterm OR [dc:title] like $sterm";
return sqlExpression;
}
}
Expand Up @@ -51,7 +51,7 @@ public void testSearchSubmitRdfJSON() throws Exception {
/* and add a dc title to the object so the query returns a result */
HttpPost postDc = new HttpPost(serverAddress + "objects/testobj");
postDc.addHeader("Content-Type", "application/sparql-update");
String updateString = "INSERT { <info:fedora/objects/testobj> <http://purl.org/dc/elements/1.1/title> \"testobj\" } WHERE { }";
String updateString = "INSERT { <info:fedora/objects/testobj> <http://purl.org/dc/terms/title> \"testobj\" } WHERE { }";
postDc.setEntity(new StringEntity(updateString));
HttpResponse dcResp = execute(postDc);
assertTrue(dcResp.getStatusLine().toString(),204 == dcResp.getStatusLine().getStatusCode());
Expand Down

0 comments on commit 0d543c1

Please sign in to comment.