public void initialise() { final OWLDataFactory df = getOWLModelManager().getOWLDataFactory(); // convert IRI -> lang map into annotation property -> lang map final List<OWLAnnotationProperty> properties = new ArrayList<OWLAnnotationProperty>(); Map<OWLAnnotationProperty, List<String>> propLangMap = new HashMap<OWLAnnotationProperty, List<String>>(); final Map<IRI, List<String>> iriLangMap = OWLRendererPreferences.getInstance().getAnnotationLangMap(); for (IRI iri : OWLRendererPreferences.getInstance().getAnnotationIRIs()){ final OWLAnnotationProperty ap = df.getOWLAnnotationProperty(iri); properties.add(ap); propLangMap.put(ap, iriLangMap.get(iri)); } provider = new AnnotationValueShortFormProvider(properties, propLangMap, getOWLModelManager().getOWLOntologyManager()); }
public void initialise() { final OWLDataFactory df = getOWLModelManager().getOWLDataFactory(); // convert IRI -> lang map into annotation property -> lang map final List<OWLAnnotationProperty> properties = new ArrayList<OWLAnnotationProperty>(); Map<OWLAnnotationProperty, List<String>> propLangMap = new HashMap<OWLAnnotationProperty, List<String>>(); final Map<IRI, List<String>> iriLangMap = OWLRendererPreferences.getInstance().getAnnotationLangMap(); for (IRI iri : OWLRendererPreferences.getInstance().getAnnotationIRIs()){ final OWLAnnotationProperty ap = df.getOWLAnnotationProperty(iri); properties.add(ap); propLangMap.put(ap, iriLangMap.get(iri)); } provider = new AnnotationValueShortFormProvider(properties, propLangMap, getOWLModelManager().getOWLOntologyManager()); }
Map<OWLAnnotationProperty, List<String>> langMap = new HashMap<OWLAnnotationProperty, List<String>>(); Map<IRI, List<String>> annotMap = OWLRendererPreferences.getInstance().getAnnotationLangMap(); for (IRI iri : annotMap.keySet()){ OWLAnnotationProperty p = mngr.getOWLDataFactory().getOWLAnnotationProperty(iri);
Map<OWLAnnotationProperty, List<String>> langMap = new HashMap<OWLAnnotationProperty, List<String>>(); Map<IRI, List<String>> annotMap = OWLRendererPreferences.getInstance().getAnnotationLangMap(); for (IRI iri : annotMap.keySet()){ OWLAnnotationProperty p = mngr.getOWLDataFactory().getOWLAnnotationProperty(iri);
Map<OWLAnnotationProperty, List<String>> langMap = new HashMap<>(); ListMultimap<IRI, String> annotMap = OWLRendererPreferences.getInstance().getAnnotationLangMap(); for (IRI iri : annotMap.keySet()){ OWLAnnotationProperty p = mngr.getOWLDataFactory().getOWLAnnotationProperty(iri);
Map<OWLAnnotationProperty, List<String>> langMap = new HashMap<>(); ListMultimap<IRI, String> annotMap = OWLRendererPreferences.getInstance().getAnnotationLangMap(); for (IRI iri : annotMap.keySet()){ OWLAnnotationProperty p = mngr.getOWLDataFactory().getOWLAnnotationProperty(iri);
public void initialise() { final OWLDataFactory df = getOWLModelManager().getOWLDataFactory(); // convert IRI -> lang map into annotation property -> lang map final List<OWLAnnotationProperty> properties = new ArrayList<>(); ListMultimap<OWLAnnotationProperty, String> propLangMap = ArrayListMultimap.create(); final ListMultimap<IRI, String> iriLangMap = OWLRendererPreferences.getInstance().getAnnotationLangMap(); for (IRI iri : OWLRendererPreferences.getInstance().getAnnotationIRIs()){ final OWLAnnotationProperty ap = df.getOWLAnnotationProperty(iri); properties.add(ap); propLangMap.putAll(ap, iriLangMap.get(iri)); } provider = new AnnotationValueShortFormProvider( () -> getOWLModelManager().getActiveOntologies(), new OWLEntityRendererImpl(), new SimpleIRIShortFormProvider(), properties, toMap(propLangMap)); }
public void initialise() { final OWLDataFactory df = getOWLModelManager().getOWLDataFactory(); // convert IRI -> lang map into annotation property -> lang map final List<OWLAnnotationProperty> properties = new ArrayList<>(); ListMultimap<OWLAnnotationProperty, String> propLangMap = ArrayListMultimap.create(); final ListMultimap<IRI, String> iriLangMap = OWLRendererPreferences.getInstance().getAnnotationLangMap(); for (IRI iri : OWLRendererPreferences.getInstance().getAnnotationIRIs()){ final OWLAnnotationProperty ap = df.getOWLAnnotationProperty(iri); properties.add(ap); propLangMap.putAll(ap, iriLangMap.get(iri)); } provider = new AnnotationValueShortFormProvider( () -> getOWLModelManager().getActiveOntologies(), new OWLEntityRendererImpl(), new SimpleIRIShortFormProvider(), properties, toMap(propLangMap)); }