aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/rsacomb/RDFTriple.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/rsacomb/RDFTriple.scala')
-rw-r--r--src/main/scala/rsacomb/RDFTriple.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/rsacomb/RDFTriple.scala b/src/main/scala/rsacomb/RDFTriple.scala
index 9e593df..4054d42 100644
--- a/src/main/scala/rsacomb/RDFTriple.scala
+++ b/src/main/scala/rsacomb/RDFTriple.scala
@@ -33,7 +33,7 @@ trait RDFTriple {
33 def suffix(sx: String): TupleTableAtom = 33 def suffix(sx: String): TupleTableAtom =
34 if (this.isClassAssertion) { 34 if (this.isClassAssertion) {
35 val newclass = atom.getArguments.get(2) match { 35 val newclass = atom.getArguments.get(2) match {
36 case iri: IRI => IRI.create(iri.getIRI.appendedAll(sx)) 36 case iri: IRI => IRI.create(s"${iri.getIRI}_$sx")
37 case other => other 37 case other => other
38 } 38 }
39 TupleTableAtom.rdf( 39 TupleTableAtom.rdf(
@@ -43,7 +43,7 @@ trait RDFTriple {
43 ) 43 )
44 } else if (this.isRoleAssertion) { 44 } else if (this.isRoleAssertion) {
45 val newrole = atom.getArguments.get(1) match { 45 val newrole = atom.getArguments.get(1) match {
46 case iri: IRI => IRI.create(iri.getIRI.appendedAll(sx)) 46 case iri: IRI => IRI.create(s"${iri.getIRI}_$sx")
47 case other => other 47 case other => other
48 } 48 }
49 TupleTableAtom.rdf( 49 TupleTableAtom.rdf(
@@ -53,7 +53,7 @@ trait RDFTriple {
53 ) 53 )
54 } else { 54 } else {
55 val newname = 55 val newname =
56 TupleTableName.create(atom.getTupleTableName.getName.appendedAll(sx)) 56 TupleTableName.create(s"${atom.getTupleTableName.getName}_$sx")
57 TupleTableAtom.create(newname, atom.getArguments()) 57 TupleTableAtom.create(newname, atom.getArguments())
58 } 58 }
59 } 59 }