Package org.ontoware.rdf2go.model.node

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


        match = true;
        String pURI = p.toString().replace(searchURIPrefix, replaceURIPrefix);
        p = new URIImpl(pURI);
       
      }
      if(o instanceof URI && o.asURI().toString().startsWith(searchURIPrefix)) {
        match = true;
        String oURI = o.asURI().toString().replace(searchURIPrefix, replaceURIPrefix);
        o = new URIImpl(oURI);
      }
     
View Full Code Here


        p = new URIImpl(pURI);
       
      }
      if(o instanceof URI && o.asURI().toString().startsWith(searchURIPrefix)) {
        match = true;
        String oURI = o.asURI().toString().replace(searchURIPrefix, replaceURIPrefix);
        o = new URIImpl(oURI);
      }
     
      if(match) {
        remove.addStatement(stmt);
View Full Code Here

              .parseLong(litIssueDate)) : null;

          Node indIssued = getGraphPropertyValue(S3B_SSCF.issuedBy);
          this.issuedBy = null;
          if(indIssued!=null)
            this.issuedBy = PersonFactory.getPerson(indIssued.asURI());
             
          if(this.issuedBy==null)
          {
            this.issuedBy = (indIssued != null) ? SscfTagger.getSscfTagger(indIssued.toString()) : null;
          }
View Full Code Here

            try
            {
              Node person = qr.getValue(results.getVariables().get(0));
              //XXX: here may be something wrong
              float val = Float.parseFloat(qr.getValue(results.getVariables().get(1)).toString());
              this.mapIsEvaluated.put(PersonFactory.getPerson(person.asURI()), val);
            }
            catch (Exception e)
            {
              //in case of any error - put nothing
            }
View Full Code Here

                    literal.getLanguageTag());
        } else if (object instanceof Literal) {
            final Literal literal = (Literal) object;
            addStatement(result, context, subject, predicate, literal.getValue());
        } else {
            addStatement(result, context, subject, predicate, object.asURI());
        }
    }

    private void addStatement(RDFDataset result, URI context, Resource subject, URI predicate,
            URI object) {
View Full Code Here

                    literal.getLanguageTag());
        } else if (object instanceof Literal) {
            final Literal literal = (Literal) object;
            addStatement(result, context, subject, predicate, literal.getValue());
        } else {
            addStatement(result, context, subject, predicate, object.asURI());
        }
    }

    private void addStatement(RDFDataset result, URI context, Resource subject, URI predicate,
            URI object) {
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.