Package org.ontoware.rdf2go.model.node

Examples of org.ontoware.rdf2go.model.node.Resource


    childrenList = new ArrayList<BookmarksHolder>();
  }
  public static BookmarksHolder getBookmarksHolder(String _uri) {
    BookmarksHolder x = null;
    if (x == null && _uri != null) {
        Resource res = new URIImpl(_uri);

        if (res != null) {
          // if OK - put into map
          x = new BookmarksHolder((URI) res);
        }
View Full Code Here


      Iterator<Statement> it = DbFace.getModel().findStatements(null,null,rdf_type ,tagger);
     
      while(it.hasNext())
      {
        Statement st = it.next();
        Resource taggerUri = st.getSubject();
        Node creator = null;
       
        //2. get sscf person for this tagger.
        Iterator<Statement> uriIt = DbFace.getModel().findStatements(null,taggerUri,isIn ,Variable.ANY);
        while(uriIt.hasNext())
        {
          creator = uriIt.next().getObject();
          if(creator!=null)
            break;
        }
       
        if(taggerUri!=null&&creator!=null)
        {
          //3. We are ready to do some changes...
          sb.append("Changing for: ");
          sb.append(taggerUri.toString()).append(" - ").append(creator.toString()).append("<BR>");
          Iterator<Statement> toChange = DbFace.getModel().findStatements(null,null, issuedBy, taggerUri);
         
          while(toChange.hasNext())
          {
            Statement stTmp = toChange.next();         
View Full Code Here

        }
        models.close();
    }

    private void handleStatement(RDFDataset result, Statement statement, URI context) {
        final Resource subject = statement.getSubject();
        final URI predicate = statement.getPredicate();
        final Node object = statement.getObject();

        if (object instanceof DatatypeLiteral) {
            final DatatypeLiteral literal = (DatatypeLiteral) object;
View Full Code Here

        }
        models.close();
    }

    private void handleStatement(RDFDataset result, Statement statement, URI context) {
        final Resource subject = statement.getSubject();
        final URI predicate = statement.getPredicate();
        final Node object = statement.getObject();

        if (object instanceof DatatypeLiteral) {
            final DatatypeLiteral literal = (DatatypeLiteral) object;
View Full Code Here

TOP

Related Classes of org.ontoware.rdf2go.model.node.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.