Examples of asURI()


Examples of com.hp.hpl.jena.shared.uuid.JenaUUID.asURI()

    @Override
    public NodeValue eval(FunctionEnv env)
    {
        JenaUUID uuid = factory.generate() ;
        // uuid.asUUID()
        Node n = Node.createURI(uuid.asURI()) ;
        return NodeValue.makeNode(n) ;
    }
}
View Full Code Here

Examples of com.hp.hpl.jena.shared.uuid.JenaUUID.asURI()

            JenaUUID uuid = JenaUUID.generate() ;
            String str = null ;
            if ( asURN )
                str = uuid.asURN() ;
            else if ( asURI )
                str = uuid.asURI() ;
            else if ( asPlain )
                str = uuid.asString() ;
            if ( str == null )
                str = uuid.asString() ;
            System.out.println(str) ;
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asUri()

    public void DeserializeURI() throws IOException, OSDException, URISyntaxException
    {
        OSD llsdURI = BinaryLLSDOSDParser.DeserializeLLSDBinary(binaryURI);
        Assert.assertEquals(OSDType.URI, llsdURI.getType());
        URI uri = new URI("http://www.testurl.test/");
        Assert.assertEquals(uri, llsdURI.asUri());

    }

    @Test
    public void SerializeURI() throws Exception
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asUri()

              OSD llsdOne = OSD.FromUri(uriOne[0]);
              String sUriOne = NotationalLLSDOSDParser.SerializeLLSDNotation(llsdOne);
//              System.out.println("sUriOne: " + sUriOne);
              OSD llsdOneDS = NotationalLLSDOSDParser.DeserializeLLSDNotation(sUriOne);
              Assert.assertEquals(OSDType.URI, llsdOneDS.getType());
              Assert.assertEquals(uriOne[0], llsdOneDS.asUri());

            URI uriTwo[] = new URI[1];

            Utils.tryParseUri("test/test/near/the/end?test=1", uriTwo);
              OSD llsdTwo = OSD.FromUri(uriTwo[0]);
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asUri()

            Utils.tryParseUri("test/test/near/the/end?test=1", uriTwo);
              OSD llsdTwo = OSD.FromUri(uriTwo[0]);
              String sUriTwo = NotationalLLSDOSDParser.SerializeLLSDNotation(llsdTwo);
              OSD llsdTwoDS = NotationalLLSDOSDParser.DeserializeLLSDNotation(sUriTwo);
              Assert.assertEquals(OSDType.URI, llsdTwoDS.getType());
              Assert.assertEquals(uriTwo[0], llsdTwoDS.asUri());
          }

          @Test
          public void DeserializeDate() throws OSDException, IOException
          {
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDUri.asUri()

    array = (OSDArray)theSD;

    Assert.assertEquals(OSDType.URI, array.get(0).getType());
    tempURI = (OSDUri)array.get(0);
    URI testURI = new URI("http://sim956.agni.lindenlab.com:12035/runtime/agents");
    Assert.assertEquals(testURI, tempURI.asUri());

    Assert.assertEquals(OSDType.URI, array.get(1).getType());
    tempURI = (OSDUri)array.get(1);
    Assert.assertEquals("", tempURI.asUri().toString());
  }
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDUri.asUri()

    URI testURI = new URI("http://sim956.agni.lindenlab.com:12035/runtime/agents");
    Assert.assertEquals(testURI, tempURI.asUri());

    Assert.assertEquals(OSDType.URI, array.get(1).getType());
    tempURI = (OSDUri)array.get(1);
    Assert.assertEquals("", tempURI.asUri().toString());
  }

  /// <summary>
  /// Test some nested containers.  This instanceof not a very deep or complicated SD graph
  /// but it should reveal basic nesting issues.
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDUri.asUri()

    array = (OSDArray)theSD;

    Assert.assertEquals(OSDType.URI, array.get(0).getType());
    tempURI = (OSDUri)array.get(0);
    URI testURI = new URI("http://sim956.agni.lindenlab.com:12035/runtime/agents");
    Assert.assertEquals(testURI, tempURI.asUri());

//    Assert.assertEquals(OSDType.URI, array.get(1).getType());
//    tempURI = (OSDUri)array.get(1);
//    Assert.assertEquals("", tempURI.asUri().toString());
  }
View Full Code Here

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

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

        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
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.