Package org.ontoware.rdf2go.model.node

Examples of org.ontoware.rdf2go.model.node.Node.asBlankNode()


            if (obj instanceof BlankNode) {
                match = true;
                URI newObj = nodeMap.get(obj);
                if (newObj == null) {
                    newObj = URIGenerator.createNewRandomUniqueURI();
                    nodeMap.put(obj.asBlankNode(), newObj);
                }
                obj = newObj;
            }
            if (match) {
                remove.addStatement(stmt);
View Full Code Here


          model.addStatement(null,bnodeEval, model.createURI(SIOC.postedBy),person.getResource());
          model.addStatement(null,bnodeEval, model.createURI(S3B_SSCF.value),model.createDatatypeLiteral(value.toString(),XSD._string));
          model.addStatement(null,this.resource,model.createURI(S3B_SSCF.isEvaluatedWith),bnodeEval);
        } else {
         
          model.removeStatements(null,eval.asBlankNode(), model.createURI(S3B_SSCF.value), null);
          //XXX: not sure if it will be working...
          model.addStatement(null,eval.asBlankNode(),model.createURI(S3B_SSCF.value),model.createDatatypeLiteral(value.toString(),XSD._string));
        }
       
View Full Code Here

          model.addStatement(null,this.resource,model.createURI(S3B_SSCF.isEvaluatedWith),bnodeEval);
        } else {
         
          model.removeStatements(null,eval.asBlankNode(), model.createURI(S3B_SSCF.value), null);
          //XXX: not sure if it will be working...
          model.addStatement(null,eval.asBlankNode(),model.createURI(S3B_SSCF.value),model.createDatatypeLiteral(value.toString(),XSD._string));
        }
       

        this.mapIsEvaluated.put(person, value);
      } catch (Exception e) {
View Full Code Here

         
          for(QueryRow qr: results) {
            Node eval = qr.getValue(results.getVariables().get(0));
            if(eval!=null) {
              removeGraphProperty(new URIImpl(S3B_SSCF.isEvaluatedWith), eval);
              model.removeStatements(null,eval.asBlankNode(), null, null);
              this.mapIsEvaluated.remove(person);
            }
          }
        }
        catch (Exception e)
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.