diff options
Diffstat (limited to 'src/main/scala/rsacomb/implicits/RDFox.scala')
-rw-r--r-- | src/main/scala/rsacomb/implicits/RDFox.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/scala/rsacomb/implicits/RDFox.scala b/src/main/scala/rsacomb/implicits/RDFox.scala new file mode 100644 index 0000000..44b7c01 --- /dev/null +++ b/src/main/scala/rsacomb/implicits/RDFox.scala | |||
@@ -0,0 +1,20 @@ | |||
1 | package rsacomb.implicits | ||
2 | |||
3 | import tech.oxfordsemantic.jrdfox.logic.expression.{IRI => RDFoxIRI} | ||
4 | import org.semanticweb.owlapi.model.{IRI => OWLIRI} | ||
5 | |||
6 | object RDFox { | ||
7 | |||
8 | implicit def rdfoxToOwlapiIri(iri: RDFoxIRI): OWLIRI = { | ||
9 | OWLIRI.create(iri.getIRI) | ||
10 | } | ||
11 | |||
12 | implicit def owlapiToRdfoxIri(iri: OWLIRI): RDFoxIRI = { | ||
13 | RDFoxIRI.create(iri.getIRIString()) | ||
14 | } | ||
15 | |||
16 | implicit def stringToRdfoxIri(iri: String): RDFoxIRI = { | ||
17 | RDFoxIRI.create(iri) | ||
18 | } | ||
19 | |||
20 | } | ||