Examples of asBlankNode()


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

            predicate, object)));
  }
 
  public void testCreateBlankNode() {
    BlankNode node = this.model.createBlankNode();
    assertEquals(node, node.asBlankNode());
  }
 
  public void testCreateDatatypeLiteral() {
    DatatypeLiteral datatypeLiteral = this.model.createDatatypeLiteral("literal", dt);
    assertEquals("literal^^" + dt, datatypeLiteral.asLiteral().toString());
View Full Code Here

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

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

          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

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

          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

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

         
          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

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

            if (subj instanceof BlankNode) {
                match = true;
                URI newSubj = nodeMap.get(subj);
                if (newSubj == null) {
                    newSubj = URIGenerator.createNewRandomUniqueURI();
                    nodeMap.put(subj.asBlankNode(), newSubj);
                }
                subj = newSubj;
            }
            if (obj instanceof BlankNode) {
                match = true;
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.