-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move (copy) RDF API into api-executor-v1
Use temporary names for backend implementation of RDF services, update dataunit pipeline model.
- Loading branch information
Showing
179 changed files
with
3,148 additions
and
1,911 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
2 changes: 1 addition & 1 deletion
2
...cutor-v1/src/main/java/com/linkedpipes/etl/executor/api/v1/PipelineExecutionObserver.java
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
2 changes: 1 addition & 1 deletion
2
...utor-v1/src/main/java/com/linkedpipes/etl/executor/api/v1/component/ComponentFactory.java
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
2 changes: 1 addition & 1 deletion
2
.../src/main/java/com/linkedpipes/etl/executor/api/v1/component/DefaultComponentFactory.java
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
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
2 changes: 1 addition & 1 deletion
2
...ecutor-v1/src/main/java/com/linkedpipes/etl/executor/api/v1/dataunit/DataUnitFactory.java
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
6 changes: 2 additions & 4 deletions
6
...r-v1/src/main/java/com/linkedpipes/etl/executor/api/v1/dataunit/RuntimeConfiguration.java
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
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
16 changes: 0 additions & 16 deletions
16
...1/src/main/java/com/linkedpipes/etl/executor/api/v1/rdf/AnnotationDescriptionFactory.java
This file was deleted.
Oops, something went wrong.
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
11 changes: 11 additions & 0 deletions
11
api-executor-v1/src/main/java/com/linkedpipes/etl/executor/api/v1/rdf/RdfException.java
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,11 @@ | ||
package com.linkedpipes.etl.executor.api.v1.rdf; | ||
|
||
import com.linkedpipes.etl.executor.api.v1.LpException; | ||
|
||
public class RdfException extends LpException { | ||
|
||
public RdfException(String messages, Object... args) { | ||
super(messages, args); | ||
} | ||
|
||
} |
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
29 changes: 29 additions & 0 deletions
29
api-executor-v1/src/main/java/com/linkedpipes/etl/executor/api/v1/rdf/model/RdfSource.java
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,29 @@ | ||
package com.linkedpipes.etl.executor.api.v1.rdf.model; | ||
|
||
import com.linkedpipes.etl.executor.api.v1.rdf.RdfException; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* TODO Remove information about GRAPH. | ||
*/ | ||
public interface RdfSource { | ||
|
||
@FunctionalInterface | ||
interface StatementHandler { | ||
|
||
void accept(String predicate, RdfValue value) throws RdfException; | ||
|
||
} | ||
|
||
void statements(String graph, String subject, StatementHandler handler) | ||
throws RdfException; | ||
|
||
List<RdfValue> getPropertyValues( | ||
String graph, String subject, String predicate) | ||
throws RdfException; | ||
|
||
List<String> getByType(String graph, String type) | ||
throws RdfException; | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
api-executor-v1/src/main/java/com/linkedpipes/etl/executor/api/v1/rdf/model/RdfValue.java
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,17 @@ | ||
package com.linkedpipes.etl.executor.api.v1.rdf.model; | ||
|
||
import com.linkedpipes.etl.executor.api.v1.rdf.RdfException; | ||
|
||
public interface RdfValue { | ||
|
||
String asString(); | ||
|
||
String getLanguage(); | ||
|
||
String getType(); | ||
|
||
Boolean asBoolean() throws RdfException; | ||
|
||
Long asLong() throws RdfException; | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
...executor-v1/src/main/java/com/linkedpipes/etl/executor/api/v1/rdf/model/TripleWriter.java
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,21 @@ | ||
package com.linkedpipes.etl.executor.api.v1.rdf.model; | ||
|
||
import com.linkedpipes.etl.executor.api.v1.rdf.RdfException; | ||
|
||
import java.util.Date; | ||
|
||
public interface TripleWriter { | ||
|
||
void iri(String subject, String predicate, String object); | ||
|
||
void string(String subject, String predicate, String object); | ||
|
||
void string(String subject, String predicate, String object, String lang); | ||
|
||
void date(String subject, String predicate, Date object); | ||
|
||
void typed(String subject, String predicate, String object, String type); | ||
|
||
void flush() throws RdfException; | ||
|
||
} |
Oops, something went wrong.