@Override public void theObject(ANode o) { HasSubjectFrameI p = (HasSubjectFrameI) getParent(); p.aPredAndObj(predicate, o); if (reify != null) { triple(reify, RDF_TYPE, RDF_STATEMENT); triple(reify, RDF_OBJECT, o); triple(reify, RDF_PREDICATE, predicate); p.makeSubjectReificationWith(reify); } }
@Override public FrameI startElement(String uri, String localName, String rawName, Attributes atts) throws SAXParseException { warning(ERR_SYNTAX_ERROR,"Cannot have XML element content <"+rawName+">as part of typed literal"); return super.startElement(uri,localName,rawName,atts); }
@Override String suggestParsetypeLiteral() { return (getParent() instanceof WantTopLevelDescription) ? "" : super .suggestParsetypeLiteral(); }
@Override FrameI apply(FrameI from, Attributes att) throws SAXParseException { from.endElement(); return from.getParent(); } }, new InternalEvent("O", "object") {
@Override final public void endElement() throws SAXParseException { nextSlot.theObject(nil()); if (bnode != null) { arp.endLocalScope(bnode); bnode = null; } super.endElement(); } @Override
void startLitElement(String uri, String rawName, Map<String, String> ns) { append('<'); append(rawName); useNameSpace(prefix(rawName),uri, ns); }
@Override public void theObject(ANode a) { restTriple(thisNode,a); } };
/** Creates new StringToken */ public ARPString(Frame f,String value,String parseType) throws SAXParseException { f.checkString(this,value); this.value = value; this.lang = ""; this.isWellFormedXML = true; this.parseType = parseType; } public ARPString(Frame f, String value,AbsXMLContext forXMLLang) throws SAXParseException {
@Override public void processingInstruction(String target, String data) throws SAXException { frame.processingInstruction(target, data); }
@Override public FrameI startElement(String uri, String localName, String rawName, Attributes atts) throws SAXParseException { warning(ERR_SYNTAX_ERROR,"XML element <"+rawName+"> inside an empty property element, whose attributes prohibit any content."); return this; }
@Override void firstTriple(ANode subj, ANode obj) { triple(subj,RDF_FIRST,obj); } }
@Override public void processingInstruction(String a, String b) throws SAXParseException { checkComposingChar = true; super.processingInstruction(a,b); }
@Override public int getLength() { int sz = 0; while (pos+sz < size && events[pos+sz].isAttribute()) sz++; return sz; } private QName q(int i) {
@Override public void theObject(ANode o) { HasSubjectFrameI p = (HasSubjectFrameI) getParent(); p.aPredAndObj(predicate, o); if (reify != null) { triple(reify, RDF_TYPE, RDF_STATEMENT); triple(reify, RDF_OBJECT, o); triple(reify, RDF_PREDICATE, predicate); p.makeSubjectReificationWith(reify); } }
@Override final public void endElement() throws SAXParseException { nextSlot.theObject(nil()); if (bnode != null) { arp.endLocalScope(bnode); bnode = null; } super.endElement(); } @Override
@Override public FrameI startElement(String uri, String localName, String rawName, Attributes atts) throws SAXParseException { warning(ERR_SYNTAX_ERROR,"Cannot have XML element content <"+rawName+">as part of typed literal"); return super.startElement(uri,localName,rawName,atts); }
@Override String suggestParsetypeLiteral() { return (getParent() instanceof WantTopLevelDescription) ? "" : super .suggestParsetypeLiteral(); }