-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.github.riverbench.ci_worker | ||
package util | ||
|
||
|
||
enum ElementType(val name: String): | ||
case Graph extends ElementType("graph") | ||
case Dataset extends ElementType("dataset") | ||
case Triple extends ElementType("triple") | ||
case Quad extends ElementType("quad") | ||
|
||
enum StreamType(val iriName: String, val isFlat: Boolean, val elementType: ElementType): | ||
lazy val iri = RdfUtil.pStax + iriName | ||
|
||
case Graph extends StreamType("graphStream", false, ElementType.Graph) | ||
case SubjectGraph extends StreamType("subjectGraphStream", false, ElementType.Graph) | ||
case Dataset extends StreamType("datasetStream", false, ElementType.Dataset) | ||
case NamedGraph extends StreamType("namedGraphStream", false, ElementType.Dataset) | ||
case TimestampedNamedGraph extends StreamType("timestampedNamedGraphStream", false, ElementType.Dataset) | ||
case Triple extends StreamType("flatTripleStream", true, ElementType.Triple) | ||
case Quad extends StreamType("flatQuadStream", true, ElementType.Quad) |