Examples of asURI()


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

              .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

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

            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

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

                    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

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

                    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

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

      Resource s = stmt.getSubject();
      URI p = stmt.getPredicate();
      Node o = stmt.getObject();
     
      boolean match = false;
      if(s instanceof URI && s.asURI().toString().startsWith(searchURIPrefix)) {
        match = true;
        String sURI = s.asURI().toString().replace(searchURIPrefix, replaceURIPrefix);
        s = new URIImpl(sURI);
      }
      if(p.toString().startsWith(searchURIPrefix)) {
View Full Code Here

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

      Node o = stmt.getObject();
     
      boolean match = false;
      if(s instanceof URI && s.asURI().toString().startsWith(searchURIPrefix)) {
        match = true;
        String sURI = s.asURI().toString().replace(searchURIPrefix, replaceURIPrefix);
        s = new URIImpl(sURI);
      }
      if(p.toString().startsWith(searchURIPrefix)) {
        match = true;
        String pURI = p.toString().replace(searchURIPrefix, replaceURIPrefix);
View Full Code Here

Examples of org.ontoware.rdfreactor.schema.rdfs.List.asURI()

    URI b = new URIImpl("urn:test:b");
    List list = new List(model, "urn:test:list", true);
   
    //assertTrue( list instanceof URI );  --> fails

    model.addStatement(a, b, list.asURI() );
    model.close();
  }

}
View Full Code Here

Examples of ratpack.util.internal.TypeCoercingProperties.asURI()

        }
      }

      int port = props.asInt(PORT, defaultPort);
      InetAddress address = props.asInetAddress(ADDRESS);
      URI publicAddress = props.asURI(PUBLIC_ADDRESS);
      boolean development = props.asBoolean(DEVELOPMENT, false);
      int threads = props.asInt(THREADS, DEFAULT_THREADS);
      List<String> indexFiles = props.asList(INDEX_FILES);
      InputStream sslKeystore = props.asStream(SSL_KEYSTORE_FILE);
      String sslKeystorePassword = props.asString(SSL_KEYSTORE_PASSWORD, "");
View Full Code Here

Examples of ratpack.util.internal.TypeCoercingProperties.asURI()

        }
      }

      int port = props.asInt(PORT, defaultPort);
      InetAddress address = props.asInetAddress(ADDRESS);
      URI publicAddress = props.asURI(PUBLIC_ADDRESS);
      boolean development = props.asBoolean(DEVELOPMENT, false);
      int threads = props.asInt(THREADS, DEFAULT_THREADS);
      List<String> indexFiles = props.asList(INDEX_FILES);
      String sslKeystore = props.asString(SSL_KEYSTORE_FILE, null);
      String sslKeystorePassword = props.asString(SSL_KEYSTORE_PASSWORD, "");
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.