Package org.jrdf.sparql.parser.node

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


        createFromPrefixedName(node);
        return getResult(node);
    }

    private void createFromPrefixedName(APrefixedNameIriRefOrPrefixedName node) {
        final AQnameQnameElement element = (AQnameQnameElement) node.getQnameElement();
        final String prefix = element.getNcnamePrefix().getText();
        final String namespace = prefixMap.get(prefix);
        final String localName = element.getNcName().getText();
        createFromURIReference(element.getNcName(), URI.create(namespace + localName));
    }
View Full Code Here


        avp.put(attribute, value);
    }

    @Override
    public void caseAQnameResourceTripleElement(AQnameResourceTripleElement node) {
        AQnameQnameElement element = (AQnameQnameElement) node.getQnameElement();
        Node value = createQNameResource(element.getNcnamePrefix().getText(), element.getNcName().getText());
        avp.put(attribute, value);
    }
View Full Code Here

        avp.put(attribute, value);
    }

    @Override
    public void caseAQnameObjectTripleElement(AQnameObjectTripleElement node) {
        AQnameQnameElement element = (AQnameQnameElement) node.getQnameElement();
        Node value = createQNameResource(element.getNcnamePrefix().getText(), element.getNcName().getText());
        avp.put(attribute, value);
    }
View Full Code Here

        uri = getResource(node.getResource());
    }

    @Override
    public void caseAQnameDatatypeDatatype(AQnameDatatypeDatatype node) {
        AQnameQnameElement qname = (AQnameQnameElement) node.getQnameElement();
        String prefix = qname.getNcnamePrefix().getText();
        if (!prefixMap.keySet().contains(prefix)) {
            exception = new ParserException(qname.getNcnamePrefix(), "Prefix not found: " + prefix);
        } else {
            uri = create(prefixMap.get(prefix) + qname.getNcName().getText());
        }
    }
View Full Code Here

TOP

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

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.