Package org.openrdf.model

Examples of org.openrdf.model.Resource.stringValue()


          }
          else if (isViewable(subject)) {
            // Since the user did not explicitly specify the subject being
            // removed, we silently ignore the statement if the subject is
            // not viewable by the user.
            throw new StoreException("insufficient access rights on subject " + subject.stringValue());
          }
        }
      }
      finally {
        toBeRemovedStatements.close();
View Full Code Here


                Resource org = findObjectAsResource(card, vVCARD.org);
                Assert.assertNotNull(findObject(org, vVCARD.organization_name));

                if (name.equals("Dan Connolly")) {
                    Assert.assertNotNull(findObject(card, vVCARD.n));
                    Assert.assertFalse(name.equals(org.stringValue()));
                }
            }
        } finally {
            repositoryResult.close();
        }
View Full Code Here

                Resource url = findObjectAsResource(vcard, vVCARD.url);

                Assert.assertNotNull( findObject(vcard, vVCARD.uid) );
                String uid = findObjectAsLiteral(vcard, vVCARD.uid);

                Assert.assertEquals("http://theryanking.com/contact/", url.stringValue() );
                Assert.assertEquals("http://theryanking.com/contact/", uid);
            }
        } finally {
            statements.close();
        }
View Full Code Here

        try {
            while (reviews.hasNext()) {

                Resource review = reviews.next().getSubject();
                logger.debug(review.stringValue());

                assertContains(review, vREVIEW.rating, "5");
                assertContains(review, vREVIEW.title, "Crepes on Cole is awesome");
                assertContains(review, vDCTERMS.date, "20050418T2300-0700");
View Full Code Here

                Resource org = findObjectAsResource(card, vVCARD.org);
                Assert.assertNotNull(findObject(org, vVCARD.organization_name));

                if (name.equals("Dan Connolly")) {
                    Assert.assertNotNull(findObject(card, vVCARD.n));
                    Assert.assertFalse(name.equals(org.stringValue()));
                }
            }
        } finally {
            repositoryResult.close();
        }
View Full Code Here

                Resource url = findObjectAsResource(vcard, vVCARD.url);

                Assert.assertNotNull( findObject(vcard, vVCARD.uid) );
                String uid = findObjectAsLiteral(vcard, vVCARD.uid);

                Assert.assertEquals("http://theryanking.com/contact/", url.stringValue() );
                Assert.assertEquals("http://theryanking.com/contact/", uid);
            }
        } finally {
            statements.close();
        }
View Full Code Here

        try {
            while (reviews.hasNext()) {

                Resource review = reviews.next().getSubject();
                logger.debug(review.stringValue());

                assertContains(review, vREVIEW.rating, "5");
                assertContains(review, vREVIEW.title, "Crepes on Cole is awesome");
                assertContains(review, vDCTERMS.date, "20050418T2300-0700");
View Full Code Here

        if (key.equals(SailTokens.NAMED_GRAPH)) {
            Resource resource = this.rawEdge.getContext();
            if (null == resource)
                return null;
            else
                return (T) resource.stringValue();
        } else
            return null;
    }

    public void setProperty(final String key, final Object value) {
View Full Code Here

                datatype = null;
            } else {
                datatype = datatypeURI.stringValue();
            }
           
            triple(subject.stringValue(), predicate.stringValue(), value, datatype, language);
        } else {
            triple(subject.stringValue(), predicate.stringValue(), object.stringValue());
        }
    }
View Full Code Here

                datatype = datatypeURI.stringValue();
            }
           
            triple(subject.stringValue(), predicate.stringValue(), value, datatype, language);
        } else {
            triple(subject.stringValue(), predicate.stringValue(), object.stringValue());
        }
    }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.