Examples of asNode()


Examples of com.hp.hpl.jena.sparql.util.LabelToNodeMap.asNode()

        {
            mapper = LabelToNodeMap.createBNodeMap() ;
            mapping.put(binding, mapper) ;
        }

        Node bnode = mapper.asNode(x.getString()) ;
        return NodeValue.makeNode(bnode) ;
    }
   
    @Override
    protected NodeValue eval(List<NodeValue> args)
View Full Code Here

Examples of dtool.ast.IASTNode.asNode()

          ambigParsedParameter.convertToFunction().asNode() : ambigParsedParameter.convertToTemplate();
      }
     
      if(nodeToCompareAgainst != null) {
        assertTrue(unambigParser.lookAhead() == DeeTokens.EOF);
        DeeParsingChecks.checkNodeEquality(unambigParsedParameter.asNode(), nodeToCompareAgainst);
      } else {
        assertTrue(unambigParser.lookAhead() != DeeTokens.EOF ||
          collectNodeErrors(unambigParsedParameter.asNode()).size() > 0);
      }
    }
View Full Code Here

Examples of dtool.ast.IASTNode.asNode()

      if(nodeToCompareAgainst != null) {
        assertTrue(unambigParser.lookAhead() == DeeTokens.EOF);
        DeeParsingChecks.checkNodeEquality(unambigParsedParameter.asNode(), nodeToCompareAgainst);
      } else {
        assertTrue(unambigParser.lookAhead() != DeeTokens.EOF ||
          collectNodeErrors(unambigParsedParameter.asNode()).size() > 0);
      }
    }
   
  }
 
View Full Code Here

Examples of dtool.ast.expressions.IInitializer.asNode()

          consumeLookAhead(DeeTokens.COLON);
          initializer = parseNonVoidInitializer(true).node;
        }
      }
     
      ASTNode startNode = index != null ? index : initializer.asNode();
      return concludeNode(srToPosition(startNode, new ArrayInitEntry(index, initializer)));
    }
   
  }
 
View Full Code Here

Examples of dtool.ast.expressions.IInitializer.asNode()

      }
      IInitializer init = parseNonVoidInitializer(createMissing || member != null).node;
      if(init == null)
        return null;
     
      ASTNode startNode = member != null ? member : init.asNode();
      return concludeNode(srToPosition(startNode, new StructInitEntry(member, init)));
    }
  }
 
  protected NodeResult<DefinitionConstructor> parseDefinitionConstructor_atThis(DefParseHelper parse) {
View Full Code Here

Examples of org.apache.jena.riot.tokens.Token.asNode()

        if ( ! tokenizer.hasNext() )
            throw new TDBException("Failed to tokenise: "+str) ;
        Token t = tokenizer.next() ;

        try {
            Node n = t.asNode() ;
            if ( n == null ) throw new TDBException("Not a node: "+str) ;
            return n ;
        } catch (RiotException ex)
        {
            throw new TDBException("Bad string for node: "+str) ;
View Full Code Here

Examples of org.apache.jena.riot.tokens.Token.asNode()

    {
        Tokenizer tokenizer = TokenizerFactory.makeTokenizerString(nodeString) ;
        if ( ! tokenizer.hasNext() )
            throw new RiotException("Empty RDF term") ;
        Token token = tokenizer.next() ;
        Node node = token.asNode(pmap) ;
        if ( node == null )
            throw new RiotException("Bad RDF Term: "+nodeString) ;

        if ( tokenizer.hasNext() )
            throw new RiotException("Trailing characters in string: "+nodeString) ;
View Full Code Here

Examples of org.apache.jena.riot.tokens.Token.asNode()

        if ( ! tokenizer.hasNext() )
            throw new TDBException("Failed to tokenise: "+str) ;
        Token t = tokenizer.next() ;

        try {
            Node n = t.asNode() ;
            if ( n == null ) throw new TDBException("Not a node: "+str) ;
            return n ;
        } catch (RiotException ex)
        {
            throw new TDBException("Bad string for node: "+str) ;
View Full Code Here

Examples of org.apache.jena.security.model.SecuredRDFList.asNode()

      {
        if (i == idx)
        {
          final SecuredRDFList list = iter.next();
          final SecuredRDFNode retval = map.map1(list);
          final Triple t = new Triple(list.asNode(), listFirst()
              .asNode(), retval.asNode());
          final Triple t2 = new Triple(list.asNode(), listFirst()
              .asNode(), value.asNode());
          checkUpdate(t, t2);
          final RDFList base = (RDFList) list.getBaseItem();
View Full Code Here

Examples of org.apache.jena.security.model.SecuredRDFNode.asNode()

        if (i == idx)
        {
          final SecuredRDFList list = iter.next();
          final SecuredRDFNode retval = map.map1(list);
          final Triple t = new Triple(list.asNode(), listFirst()
              .asNode(), retval.asNode());
          final Triple t2 = new Triple(list.asNode(), listFirst()
              .asNode(), value.asNode());
          checkUpdate(t, t2);
          final RDFList base = (RDFList) list.getBaseItem();
          base.getRequiredProperty(listFirst()).changeObject(value);
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.