public boolean isCompiledAnnotation(URI name) { return roles.isRecordedAnnotation(name); }
public boolean isCompiledAnnotation(URI name) { return roles.isRecordedAnnotation(name); }
private Set<String> findUndefinedNamespaces(Model model, ClassLoader cl) { Set<String> unknown = new HashSet<String>(); for (Resource subj : model.filter(null, RDF.TYPE, null).subjects()) { if (subj instanceof URI) { URI uri = (URI) subj; String ns = uri.getNamespace(); if (!mapper.isRecordedConcept(uri, cl) && !literals.isRecordedeType(uri) && !mapper.isRecordedAnnotation(uri)) { unknown.add(ns); } } } return unknown; }
private Set<String> findUndefinedNamespaces(Model model, ClassLoader cl) { Set<String> unknown = new HashSet<String>(); for (Resource subj : model.filter(null, RDF.TYPE, null).subjects()) { if (subj instanceof URI) { URI uri = (URI) subj; String ns = uri.getNamespace(); if (!mapper.isRecordedConcept(uri, cl) && !literals.isRecordedeType(uri) && !mapper.isRecordedAnnotation(uri)) { unknown.add(ns); } } } return unknown; }
private long hash(Model schema) { long hash = 0; for (Statement st : schema) { Resource subj = st.getSubject(); URI pred = st.getPredicate(); Value obj = st.getObject(); boolean relevant = OWL.NAMESPACE.equals(pred.getNamespace()); relevant |= RDFS.NAMESPACE.equals(pred.getNamespace()); relevant |= RDF.NAMESPACE.equals(pred.getNamespace()); relevant |= MSG.NAMESPACE.equals(pred.getNamespace()); final URI ANN = OWL.ANNOTATIONPROPERTY; if (relevant || mapper.isRecordedAnnotation(pred) || schema.contains(pred, RDF.TYPE, ANN)) { hash += 31 * pred.hashCode(); if (subj instanceof URI) { hash += 961 * subj.hashCode(); } if (obj instanceof URI) { hash += obj.hashCode(); } if (obj instanceof Literal) { hash += obj.hashCode(); } } } return hash; }
if (bean.getURI() == null) continue; if (mapper.isRecordedAnnotation(bean.getURI())) continue; String namespace = bean.getURI().getNamespace();
if (bean.getURI() == null) continue; if (mapper.isRecordedAnnotation(bean.getURI())) continue; String namespace = bean.getURI().getNamespace();