-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store results from ResponseBodyProcessor
* also updates CSVStorage * adds Storable interface
- Loading branch information
Showing
11 changed files
with
271 additions
and
60 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package org.aksw.iguana.cc.storage; | ||
|
||
import org.apache.jena.rdf.model.Model; | ||
|
||
import java.util.List; | ||
|
||
public interface Storable { | ||
|
||
record CSVFileData ( | ||
String filename, | ||
String[][] data | ||
) {} | ||
|
||
interface AsCSV { | ||
|
||
/** | ||
* Converts the data into CSV files. The key of the map contains the file name for the linked entries. | ||
* | ||
* @return CSVFileData list which contains all the files and their data that should be created and stored | ||
*/ | ||
List<CSVFileData> toCSV(); | ||
} | ||
|
||
interface AsRDF { | ||
|
||
/** | ||
* Converts the data into an RDF model, which will be added to the appropriate storages. | ||
* | ||
* @return RDF model that contains the data | ||
*/ | ||
Model toRDF(); | ||
} | ||
|
||
} |
Oops, something went wrong.