File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
binary-array-ld-lib/src/main/kotlin/net/bald/context
binary-array-ld-netcdf/src/main/kotlin/net/bald/netcdf Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -5,21 +5,29 @@ import org.apache.jena.rdf.model.Resource
5
5
import org.apache.jena.shared.PrefixMapping
6
6
7
7
/* *
8
- * TODO
8
+ * The external context in which a binary array can be resolved.
9
+ * This includes resource and property aliases as defined by [AliasDefinition]
10
+ * and the available namespace prefix mappings.
9
11
* @see AliasDefinition
10
12
*/
11
13
interface ModelContext : AliasDefinition {
12
14
/* *
13
- * TODO
15
+ * Prefix mappings that are available in this context.
14
16
*/
15
17
val prefixMapping: PrefixMapping
16
18
19
+ /* *
20
+ * A substitute [ModelContext] implementation that represents a null or empty context.
21
+ */
17
22
object Empty: ModelContext {
18
23
override val prefixMapping: PrefixMapping get() = PrefixMapping .Factory .create()
19
24
override fun property (identifier : String ): Property ? = null
20
25
override fun resource (identifier : String ): Resource ? = null
21
26
}
22
27
28
+ /* *
29
+ * A basic [ModelContext] implementation that simply composes the prefix mapping and alias elements.
30
+ */
23
31
class Base (
24
32
override val prefixMapping : PrefixMapping ,
25
33
private val alias : AliasDefinition
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class NetCdfBinaryArray(
66
66
* The resulting [NetCdfBinaryArray] should be closed after use.
67
67
* @param fileLoc The location of the NetCDF file on the local file system.
68
68
* @param uri The URI which identifies the dataset.
69
- * @param context TODO
69
+ * @param context The external context in which to resolve the binary array.
70
70
* @return A [BinaryArray] representation of the NetCDF file.
71
71
*/
72
72
@JvmStatic
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class NetCdfRootContainer(
12
12
private val ba : NetCdfBinaryArray ,
13
13
group : Group ,
14
14
): NetCdfContainer(group) {
15
- override val uri: String get() = ba.uri + " /" // TODO trailing slash???
15
+ override val uri: String get() = ba.uri + " /"
16
16
override val context: ModelContext get() = ba.context
17
17
override val uriParser: UriParser get() = UriParser (ba.prefixMapping)
18
18
You can’t perform that action at this time.
0 commit comments