/** * Print node label to assist with debug. */ @Override public String toString() { return "[" + rdfNode.getLocalName() + "]"; }
/** * Print node label to assist with debug. */ @Override public String toString() { return "[" + rdfNode.getLocalName() + "]"; }
@Override public String getLocalName() { return isAnon() ? null : node.getLocalName(); }
@Override public String getLocalName() { return isAnon() ? null : node.getLocalName(); }
private boolean predicateIsTeiName(Triple triple) { return triple.getPredicate().getNameSpace().equals(TEI_NAMESPACE) && TEI_NAMES_COMPONENTS.contains(triple.getPredicate().getLocalName()); }
public Collection findOrCreateCollection(String vreName, Node subject) { return findOrCreateCollection(vreName, subject.getURI(), subject.getLocalName()); }
private boolean subclassOfKnownArchetype(Triple triple) { return triple.getPredicate().getURI().equals(RDF_SUB_CLASS_OF) && database.isKnownArchetype(triple.getObject().getLocalName()); }
/** * Full dump for debugging */ public String dump() { return rdfNode.getLocalName() + siblings.dump() + " succ=" + dumpSet( succ ) + ", succClose=" + dumpSet( succClosed ) + ", pred=" + dumpSet( pred ) ; }
/** * Full dump for debugging */ public String dump() { return rdfNode.getLocalName() + siblings.dump() + " succ=" + dumpSet( succ ) + ", succClose=" + dumpSet( succClosed ) + ", pred=" + dumpSet( pred ) ; }
@Override public NodeValue exec(NodeValue v) { Node n = v.asNode() ; if ( ! n.isURI() ) throw new ExprEvalException("Not a URI: "+FmtUtils.stringForNode(n)) ; String str = n.getLocalName() ; return NodeValue.makeString(str) ; } }
String x = p.getLocalName() ;
/** test that URI nodes have namespace/localname splits which are consistent with Util.splitNamepace. */ public void testNamespace() { for ( String uri : someURIs ) { int split = Util.splitNamespaceXML( uri ); Node n = NodeCreateUtils.create( uri ); assertEquals( "check namespace", uri.substring( 0, split ), n.getNameSpace() ); assertEquals( "check localname", uri.substring( split ), n.getLocalName() ); } }
/** test that URI nodes have namespace/localname splits which are consistent with Util.splitNamepace. */ public void testNamespace() { for ( String uri : someURIs ) { int split = Util.splitNamespaceXML( uri ); Node n = NodeCreateUtils.create( uri ); assertEquals( "check namespace", uri.substring( 0, split ), n.getNameSpace() ); assertEquals( "check localname", uri.substring( split ), n.getLocalName() ); } }
public List<TextHit> query(Node property, String qs, String graphURI, String lang, int limit) { if(property != null) { qs = parse(property.getLocalName(), qs, lang); } else { qs = parse(null, qs, lang);
private QueryIterator subjectIsIRI(Node subject, PropFuncArg argObject, Binding binding, ExecutionContext execCxt) String localname = subject.getLocalName() ;
addUnsupportedFeature("Invalid value for the owl:" + restrictionType.getLocalName() + " restriction: " + filler); _logger.log(Level.WARNING, "Invalid cardinality", ex);
addUnsupportedFeature("Invalid value for the owl:" + restrictionType.getLocalName() + " restriction: " + filler); _logger.log(Level.WARNING, "Invalid cardinality", ex);
addUnsupportedFeature("Invalid value for the owl:" + restrictionType.getLocalName() + " restriction: " + filler); _logger.log(Level.WARNING, "Invalid cardinality", ex);