Skip to content

Commit f96aaf3

Browse files
Test spec (#51)
* Set theme jekyll-theme-slate * Create index.md Initialise GH pages * Add variable references * Add test framework * Infer references from all var to var relationships * Fix deps * Set compiler plugin version * Add binary-array-api module containing core interfaces * Add API module dependency * Remove unused imports * Move ModelAliasDefinition class into model package * Add NetCDF LD converter class * Refactor CLI and spec test to use converter impl * Refactor test framework to use converter interface * Update docs and demos * Fix test doc * Fix advanced usage doc * Update root identity resource to match spec * Fix test * Update tests to current versions * Fix mistake in test spec * Fix media types in test graphs * Fix integer node types * Add format and distribution to graph output * Fix tests and remove unused uri property on binary array interface * Add format and distribution to graph Remove unused URI property on binary array interface * Remove unused imports * Fix output format test * update tests * Change converter interface to use URIs to locate resources * Optimise imports * Update docs * Add base vocab * Add base vocab to alias definition * Exclude bald:isPrefixedBy from output graph * Update docs * Rename test files * Fix tests * Add factory method and update docs * Add binary-array-ld-api javadoc links
1 parent 73fa5d6 commit f96aaf3

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)