Examples of createURI()


Examples of com.linkedin.jersey.api.uri.UriTemplate.createURI()

  public static String[] extractPathComponentsFromUriTemplate(String uriTemplate)
  {
    final String normalizedUriTemplate = uriTemplate.replaceAll("(^/|/$)", "");
    final UriTemplate template = new UriTemplate(normalizedUriTemplate);
    final String uri = template.createURI(_EMPTY_STRING_ARRAY);
    return uri.replaceAll("/+", "/").split("/");
  }
}
View Full Code Here

Examples of javax.sip.address.AddressFactory.createURI()

    try
    {
      AddressFactory addressFactory = getAddressFactory();

      List<ViaHeader> viaHeaders = _sipPhone.getViaHeaders();
      URI requestUri = addressFactory.createURI(to);
      Address toAddr = addressFactory.createAddress(requestUri);

      Request request = getMessageFactory().createRequest(
          requestUri,
          method,
View Full Code Here

Examples of net.sf.jportlet.portlet.PortletResponse.createURI()

            {
                throw new PortletException( "Invalid command: " + action + "/" + command );
            }
           
            PortletResponse response = event.getPortletResponse();
            PortletURI nextURI = response.createURI(Portlet.Mode.EDIT, PortletWindow.State.MAXIMIZED );
            event.setNextURI( nextURI );
        }
        else
        {
            throw new PortletException( "Invalid action: " + action );
View Full Code Here

Examples of org.apache.marmotta.kiwi.sail.KiWiValueFactory.createURI()

     */
    @Test
    public void testStoreJustifications() throws Exception {
        KiWiValueFactory v = (KiWiValueFactory) repository.getValueFactory();

        URI ctxb = v.createURI("http://localhost/context/default");
        URI ctxi = v.createURI("http://localhost/context/inferred");

        URI s1 = v.createURI("http://localhost/resource/"+ RandomStringUtils.randomAlphanumeric(8));
        URI s2 = v.createURI("http://localhost/resource/"+ RandomStringUtils.randomAlphanumeric(8));
        URI s3 = v.createURI("http://localhost/resource/"+ RandomStringUtils.randomAlphanumeric(8));
View Full Code Here

Examples of org.apache.marmotta.ldpath.backend.linkeddata.LDCacheBackend.createURI()

            File tmpDir = null;
            LDCacheBackend backend = new LDCacheBackend();

            Resource context = null;
            if(cmd.hasOption("context")) {
                context = backend.createURI(cmd.getOptionValue("context"));
            }

            BufferedWriter out = null;
            if(cmd.hasOption("out")) {
                File of = new File(cmd.getOptionValue("out"));
View Full Code Here

Examples of org.ontoware.rdf2go.impl.jena26.ModelImplJena26.createURI()

    /*
     * before we can do anything useful, we have to define the uris we want
     * to use
     */
    // use the uris defined by foaf
    URI foafName = model.createURI("http://xmlns.com/foaf/0.1/name");
    URI foafPerson = model.createURI("http://xmlns.com/foaf/0.1/Person");
    URI foafTitle = model.createURI("http://xmlns.com/foaf/0.1/title");
    URI foafKnows = model.createURI("http://xmlns.com/foaf/0.1/knows");
    URI foafHomepage = model.createURI("http://xmlns.com/foaf/0.1/homepage");
    // use a blank node for the person
View Full Code Here

Examples of org.ontoware.rdf2go.impl.jena26.ModelImplJena26.createURI()

     * before we can do anything useful, we have to define the uris we want
     * to use
     */
    // use the uris defined by foaf
    URI foafName = model.createURI("http://xmlns.com/foaf/0.1/name");
    URI foafPerson = model.createURI("http://xmlns.com/foaf/0.1/Person");
    URI foafTitle = model.createURI("http://xmlns.com/foaf/0.1/title");
    URI foafKnows = model.createURI("http://xmlns.com/foaf/0.1/knows");
    URI foafHomepage = model.createURI("http://xmlns.com/foaf/0.1/homepage");
    // use a blank node for the person
    BlankNode werner = model.createBlankNode();
View Full Code Here

Examples of org.ontoware.rdf2go.impl.jena26.ModelImplJena26.createURI()

     * to use
     */
    // use the uris defined by foaf
    URI foafName = model.createURI("http://xmlns.com/foaf/0.1/name");
    URI foafPerson = model.createURI("http://xmlns.com/foaf/0.1/Person");
    URI foafTitle = model.createURI("http://xmlns.com/foaf/0.1/title");
    URI foafKnows = model.createURI("http://xmlns.com/foaf/0.1/knows");
    URI foafHomepage = model.createURI("http://xmlns.com/foaf/0.1/homepage");
    // use a blank node for the person
    BlankNode werner = model.createBlankNode();
   
View Full Code Here

Examples of org.ontoware.rdf2go.impl.jena26.ModelImplJena26.createURI()

     */
    // use the uris defined by foaf
    URI foafName = model.createURI("http://xmlns.com/foaf/0.1/name");
    URI foafPerson = model.createURI("http://xmlns.com/foaf/0.1/Person");
    URI foafTitle = model.createURI("http://xmlns.com/foaf/0.1/title");
    URI foafKnows = model.createURI("http://xmlns.com/foaf/0.1/knows");
    URI foafHomepage = model.createURI("http://xmlns.com/foaf/0.1/homepage");
    // use a blank node for the person
    BlankNode werner = model.createBlankNode();
   
    /*
 
View Full Code Here

Examples of org.ontoware.rdf2go.impl.jena26.ModelImplJena26.createURI()

    // use the uris defined by foaf
    URI foafName = model.createURI("http://xmlns.com/foaf/0.1/name");
    URI foafPerson = model.createURI("http://xmlns.com/foaf/0.1/Person");
    URI foafTitle = model.createURI("http://xmlns.com/foaf/0.1/title");
    URI foafKnows = model.createURI("http://xmlns.com/foaf/0.1/knows");
    URI foafHomepage = model.createURI("http://xmlns.com/foaf/0.1/homepage");
    // use a blank node for the person
    BlankNode werner = model.createBlankNode();
   
    /*
     * now we can add statements to the model (for easier reading we
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.