Skip to content

review internal table naming #19

@chile12

Description

@chile12

Here:
https://github.com/SANSA-Stack/SANSA-RDF/blob/develop/sansa-rdf-partition-parent/sansa-rdf-partition-sparqlify/src/main/scala/net/sansa_stack/rdf/partition/sparqlify/SparqlifyUtils2.scala#L32

Will trigger an exception when dealing with prefix IRIs not ending with a slash.
I changed it to:

val lastSeparatorIndex = Math.max(pred.lastIndexOf("/"), pred.lastIndexOf("#")) val tableName = pred.substring(lastSeparatorIndex + 1)

But it would probably be even better to settle with some less error prone approach all together.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions