Skip to content

Commit

Permalink
Referencing individual namespaces instead of module (#24)
Browse files Browse the repository at this point in the history
Resolves #21
  • Loading branch information
danielbeeke authored Sep 30, 2022
1 parent 848fcef commit 7fff076
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion library/decoder.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { type Context, fromRdf, Graph, Iri, Node, type RDF } from "./rdf.ts";
import type { Property, Schema } from "./schema/mod.ts";
import { ldkit, rdf } from "./namespaces/mod.ts";
import ldkit from "./namespaces/ldkit.ts";
import rdf from "./namespaces/rdf.ts";

type DecodedNode = Record<string, unknown>;

Expand Down
3 changes: 2 additions & 1 deletion library/encoder.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { type Context, DataFactory, type Iri, type RDF, toRdf } from "./rdf.ts";
import type { Property, Schema } from "./schema/mod.ts";
import { rdf, xsd } from "./namespaces/mod.ts";
import xsd from "./namespaces/xsd.ts";
import rdf from "./namespaces/rdf.ts";

type DecodedNode = Record<string, unknown>;

Expand Down
4 changes: 3 additions & 1 deletion library/resource/query_builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import type { Property, Schema } from "../schema/mod.ts";
import { getSchemaProperties } from "../schema/mod.ts";
import { $, CONSTRUCT, DELETE, INSERT, SELECT } from "../sparql.ts";
import { type Context, DataFactory, type Iri, type RDF } from "../rdf.ts";
import { ldkit, rdf } from "../namespaces/mod.ts";
import ldkit from "../namespaces/ldkit.ts";
import rdf from "../namespaces/rdf.ts";

import { encode } from "../encoder.ts";

import type { Entity } from "./types.ts";
Expand Down
3 changes: 2 additions & 1 deletion library/schema/data_types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { rdf, xsd } from "../namespaces/mod.ts";
import xsd from "../namespaces/xsd.ts";
import rdf from "../namespaces/rdf.ts";

const SupportedDataTypesPrototype = {
[xsd.dateTime]: new Date(),
Expand Down
2 changes: 1 addition & 1 deletion library/schema/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { xsd } from "../namespaces/mod.ts";
import xsd from "../namespaces/xsd.ts";
//import { string } from "yargs";
import type {
Property,
Expand Down

0 comments on commit 7fff076

Please sign in to comment.