Package com.hp.hpl.jena.rdf.model.impl

Examples of com.hp.hpl.jena.rdf.model.impl.ResourceImpl


      StringTokenizer tkn = new StringTokenizer((String) o, ", ");
      Vector<Resource> v = new Vector<Resource>();
      while (tkn.hasMoreElements()) {
        String frag = tkn.nextToken();
        //  System.err.println("Blocking " + frag);
        v.add(new ResourceImpl(RDFSyntax.getURI() + frag));
      }

      blockedRules = new Resource[v.size()];
      v.copyInto(blockedRules);
    }
View Full Code Here


       
        if ( n.isLiteral() )
            return new LiteralImpl(n, null) ;
               
        if ( n.isURI() || n.isBlank() )
            return new ResourceImpl(n, null) ;
       
        throw new ARQInternalErrorException("Unknown node type for node: "+n) ;
    }
View Full Code Here

       
        if ( n.isLiteral() )
            return new LiteralImpl(n, null) ;
               
        if ( n.isURI() || n.isBlank() )
            return new ResourceImpl(n, null) ;
       
        throw new ARQInternalErrorException("Unknown node type for node: "+n) ;
    }
View Full Code Here

        String frag = tkn.nextToken();
        //  System.err.println("Blocking " + frag);
        if (frag.equals("daml:collection"))
          v.add(DAML_OIL.collection);
        else
          v.add(new ResourceImpl(RDFSyntax.getURI() + frag));
      }

      blockedRules = new Resource[v.size()];
      v.copyInto(blockedRules);
    }
View Full Code Here

      StringTokenizer tkn = new StringTokenizer((String) o, ", ");
      Vector<Resource> v = new Vector<>();
      while (tkn.hasMoreElements()) {
        String frag = tkn.nextToken();
        //  System.err.println("Blocking " + frag);
        v.add(new ResourceImpl(RDFSyntax.getURI() + frag));
      }

      blockedRules = new Resource[v.size()];
      v.copyInto(blockedRules);
    }
View Full Code Here

    @Test
    public void stringForObject_misc_versions() throws Exception {
        assertEquals("<<null>>", FmtUtils.stringForObject(null)) ;
        assertEquals("<n1>", FmtUtils.stringForObject(new LiteralImpl(aNode(), null))) ;
        assertEquals("<nzz1>", FmtUtils.stringForObject(new ResourceImpl(NodeFactory.createURI("nzz1"), null))) ;
        assertEquals("abc", FmtUtils.stringForObject("abc")) ;
    }
View Full Code Here

        assertEquals("false", FmtUtils.stringForLiteral(nl, getContext())) ;
    }

    @Test
    public void stringForRDFNode_resource() throws Exception {
        final ResourceImpl rdfNod = new ResourceImpl(aUriRemappableNode(), null) ;
        assertEquals("zz:abs", stringForRDFNode(rdfNod, getContext())) ;
    }
View Full Code Here

       
        if ( n.isLiteral() )
            return new LiteralImpl(n, null) ;
               
        if ( n.isURI() || n.isBlank() )
            return new ResourceImpl(n, null) ;
       
        throw new ARQInternalErrorException("Unknown node type for node: "+n) ;
    }
View Full Code Here

        String frag = tkn.nextToken();
        //  System.err.println("Blocking " + frag);
        if (frag.equals("daml:collection"))
          v.add(DAML_OIL.collection);
        else
          v.add(new ResourceImpl(RDFSyntax.getURI() + frag));
      }

      blockedRules = new Resource[v.size()];
      v.copyInto(blockedRules);
    }
View Full Code Here

       
        if ( n.isLiteral() )
            return new LiteralImpl(n, null) ;
               
        if ( n.isURI() || n.isBlank() )
            return new ResourceImpl(n, null) ;
       
        throw new ARQInternalErrorException("Unknown node type for node: "+n) ;
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.rdf.model.impl.ResourceImpl

Copyright © 2018 www.massapicom. 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.