diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2022-05-10 18:17:06 +0100 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2022-05-11 12:34:47 +0100 |
| commit | 17bd9beaf7f358a44e5bf36a5855fe6727d506dc (patch) | |
| tree | 47e9310a0cff869d9ec017dcb2c81876407782c8 /src/main/java/org/semanticweb/karma2/model/Equality.java | |
| parent | 8651164cd632a5db310b457ce32d4fbc97bdc41c (diff) | |
| download | ACQuA-17bd9beaf7f358a44e5bf36a5855fe6727d506dc.tar.gz ACQuA-17bd9beaf7f358a44e5bf36a5855fe6727d506dc.zip | |
[pagoda] Move project to Scala
This commit includes a few changes:
- The repository still uses Maven to manage dependency but it is now a
Scala project.
- The code has been ported from OWLAPI 3.4.10 to 5.1.20
- A proof of concept program using both RSAComb and PAGOdA has been
added.
Diffstat (limited to 'src/main/java/org/semanticweb/karma2/model/Equality.java')
| -rw-r--r-- | src/main/java/org/semanticweb/karma2/model/Equality.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/main/java/org/semanticweb/karma2/model/Equality.java b/src/main/java/org/semanticweb/karma2/model/Equality.java new file mode 100644 index 0000000..fcb270c --- /dev/null +++ b/src/main/java/org/semanticweb/karma2/model/Equality.java | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | package org.semanticweb.karma2.model; | ||
| 2 | |||
| 3 | import java.io.Serializable; | ||
| 4 | |||
| 5 | import org.semanticweb.HermiT.Prefixes; | ||
| 6 | import org.semanticweb.HermiT.model.DLPredicate; | ||
| 7 | |||
| 8 | /** | ||
| 9 | * Represents the equality predicate. | ||
| 10 | */ | ||
| 11 | public class Equality implements DLPredicate,Serializable { | ||
| 12 | private static final long serialVersionUID=8308051741088513244L; | ||
| 13 | |||
| 14 | public static final Equality INSTANCE=new Equality(); | ||
| 15 | |||
| 16 | protected Equality () { | ||
| 17 | } | ||
| 18 | public int getArity() { | ||
| 19 | return 2; | ||
| 20 | } | ||
| 21 | public String toString(Prefixes prefixes) { | ||
| 22 | return "<http://www.w3.org/2002/07/owl#sameas>"; | ||
| 23 | } | ||
| 24 | public String toOrderedString(Prefixes prefixes) { | ||
| 25 | return toString(prefixes); | ||
| 26 | } | ||
| 27 | public String toString() { | ||
| 28 | return toString(Prefixes.STANDARD_PREFIXES); | ||
| 29 | } | ||
| 30 | protected Object readResolve() { | ||
| 31 | return INSTANCE; | ||
| 32 | } | ||
| 33 | public static Equality create() { | ||
| 34 | return INSTANCE; | ||
| 35 | } | ||
| 36 | } | ||
