NIHVIVO-143 Allow adding a new moniker from the front end

This commit is contained in:
rjy7 2010-03-22 23:17:22 +00:00
parent 87a97cd8df
commit bcbe290c51
10 changed files with 146 additions and 39 deletions

View file

@ -201,9 +201,11 @@ public class RdfLiteralHashTest {
Individual bob = new IndividualImpl();
bob.setURI("http://example.com/bob");
String propertyUri = VitroVocabulary.MONIKER;
int hash = RdfLiteralHash.makeVitroNsLiteralHash(bob,VitroVocabulary.MONIKER, "great", model);
DataPropertyStatement stmt = RdfLiteralHash.getVitroNsPropertyStmtByHash(bob, model, hash);
int hash = RdfLiteralHash.makeVitroNsLiteralHash(bob, propertyUri, "great", model);
DataPropertyStatement stmt = RdfLiteralHash.getVitroNsPropertyStmtByHash(bob, propertyUri, model, hash);
String data = stmt.getData();
String datatypeUri = stmt.getDatatypeURI();