Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9040cd91 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- Added extensions to BasicOntologyNetwork (impl)

parent 4b4d7f85
No related branches found
No related tags found
No related merge requests found
/*
* $Id$
*
* Copyright (C) INRIA, 2009-2010
* Copyright (C) INRIA, 2009-2010, 2014
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
......@@ -23,6 +23,7 @@ package fr.inrialpes.exmo.align.impl;
import java.lang.Cloneable;
import java.lang.Iterable;
import java.util.Collections;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
......@@ -41,18 +42,19 @@ import org.semanticweb.owl.align.OntologyNetwork;
/**
* Represents a distributed system of aligned ontologies or network of ontologies.
*
* @author J�r�me Euzenat
* @version $Id$
*/
public class BasicOntologyNetwork implements OntologyNetwork {
protected Hashtable<URI,OntologyTriple> ontologies;
protected HashSet<Alignment> alignments;
protected Extensions extensions = null;
protected HashMap<URI,Map<URI,Set<Alignment>>> onto2Align;
public BasicOntologyNetwork(){
extensions = new Extensions();
ontologies = new Hashtable<URI,OntologyTriple>();
alignments = new HashSet<Alignment>();
onto2Align = new HashMap<URI,Map<URI,Set<Alignment>>>();
......@@ -134,6 +136,18 @@ public class BasicOntologyNetwork implements OntologyNetwork {
return Collections.emptySet();
}
public Collection<String[]> getExtensions(){ return extensions.getValues(); }
public void setExtensions( Extensions ext ){ extensions = ext; }
public void setExtension( String uri, String label, String value ) {
extensions.setExtension( uri, label, value );
};
public String getExtension( String uri, String label ) {
return extensions.getExtension( uri, label );
};
}
class OntologyTriple {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment