Skip to content

Commit 7a2c799

Browse files
Merge branch 'master' of github.com:binary-array-ld/net.binary_array_ld.bald
2 parents f9626bc + f96aaf3 commit 7a2c799

File tree

69 files changed

+1076
-92
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1076
-92
lines changed

binary-array-ld-api/pom.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>binary-array-ld</artifactId>
7+
<groupId>net.binary-array-ld</groupId>
8+
<version>1.0.0-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>binary-array-ld-api</artifactId>
13+
<packaging>jar</packaging>
14+
15+
<name>Binary Array Linked Data - API</name>
16+
<description>API for Binary Array LD functionality.</description>
17+
18+
<dependencies>
19+
<!-- LIB -->
20+
<dependency>
21+
<groupId>org.apache.jena</groupId>
22+
<artifactId>jena-core</artifactId>
23+
<version>${jena.version}</version>
24+
</dependency>
25+
</dependencies>
26+
27+
<build>
28+
<plugins>
29+
<plugin>
30+
<groupId>org.jetbrains.dokka</groupId>
31+
<artifactId>dokka-maven-plugin</artifactId>
32+
</plugin>
33+
</plugins>
34+
</build>
35+
36+
</project>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package net.bald
2+
3+
import org.apache.jena.rdf.model.Model
4+
import java.net.URI
5+
6+
/**
7+
* A binary array to linked data converter.
8+
*/
9+
interface Converter {
10+
/**
11+
* Convert a binary array file to a linked data graph.
12+
* @param input The location of the NetCDF binary array file to convert.
13+
* @param uri The URI that identifies the binary array.
14+
* @param contexts The location of files containing JSON-LD contexts.
15+
* @param aliases The location of files containing alias definitions.
16+
* @param downloadUrl The URL from which the NetCDF file can be downloaded, if one exists. Otherwise, null.
17+
* @return The linked data graph.
18+
*/
19+
fun convert(
20+
input: URI,
21+
uri: String? = null,
22+
contexts: List<URI>? = null,
23+
aliases: List<URI>? = null,
24+
downloadUrl: String? = null
25+
): Model
26+
}
27+

0 commit comments

Comments
 (0)