Package org.jrdf.sparql.parser.node

Examples of org.jrdf.sparql.parser.node.TIdentifier


        Map<AttributeName, PositionalNodeType> variables = varCollector.getAttributes();
        for (AttributeName variable : declaredVariables) {
            NodeType type = variables.get(variable);
            if (type == null) {
                String literal = variable.getLiteral();
                throw new ParserException(new TIdentifier(literal), "Failed to find variable " +
                    literal + " in where clause. ");
            } else {
                Attribute attribute = new AttributeImpl(variable, type);
                newAttributes.add(attribute);
            }
View Full Code Here


        return variable.getVariablename().getText();
    }

    private Node createQNameResource(String identifier, String ncName) {
        if (!prefixMap.keySet().contains(identifier)) {
            exception = new ParserException(new TIdentifier("identifier"), "Couldn't find prefix: " + identifier);
            return null;
        } else {
            String stringForm = prefixMap.get(identifier) + ncName;
            return createResource(create(stringForm));
        }
View Full Code Here

    private URIReference createResource(URI uri) {
        try {
            return currentGraph.getElementFactory().createURIReference(uri);
        } catch (GraphElementFactoryException e) {
            exception = new ParserException(new TIdentifier("identifier"), "Couldn't create URI: " + uri);
            return null;
        }
    }
View Full Code Here

TOP

Related Classes of org.jrdf.sparql.parser.node.TIdentifier

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.