Package org.corrib.s3b.mbb.beans.rdf

Examples of org.corrib.s3b.mbb.beans.rdf.Resource


    org.openrdf.model.URI uri = getURI(predicate);
    org.openrdf.model.Value value = getValue(object);
   
    Collection<Statement> statements = new ArrayList<Statement>();
    for (Object statement : graph.getStatementCollection(resource, uri, value)) {
      Resource _subject = getResource(((org.openrdf.model.Statement)statement).getSubject());
      URI _predicate = getURI(((org.openrdf.model.Statement)statement).getPredicate());
      Value _object = getValue(((org.openrdf.model.Statement)statement).getObject());
      statements.add(new Statement(_subject, _predicate, _object));
    }
   
View Full Code Here


    }
  }
 
  protected static org.openrdf.model.Value getValue(Value value) {
    if (value instanceof Resource) {
      Resource resource = (Resource)value;
      return getResource(resource);
    } else if (value instanceof Literal) {
      Literal literal = (Literal)value;
      if (literal.getLanguage() != null) {
        return new LiteralImpl(literal.getLabel(), literal.getLanguage());
View Full Code Here

TOP

Related Classes of org.corrib.s3b.mbb.beans.rdf.Resource

Copyright © 2018 www.massapicom. 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.