Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Alignment API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
moex
Alignment API
Commits
9040cd91
Commit
9040cd91
authored
11 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- Added extensions to BasicOntologyNetwork (impl)
parent
4b4d7f85
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fr/inrialpes/exmo/align/impl/BasicOntologyNetwork.java
+17
-3
17 additions, 3 deletions
src/fr/inrialpes/exmo/align/impl/BasicOntologyNetwork.java
with
17 additions
and
3 deletions
src/fr/inrialpes/exmo/align/impl/BasicOntologyNetwork.java
+
17
−
3
View file @
9040cd91
/*
* $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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment