Skip to content

Commit

Permalink
Merge pull request #36 from hypermedia-app/rdf-vocabs
Browse files Browse the repository at this point in the history
Update @zazuko/rdf-vocabularies
  • Loading branch information
tpluscode committed Nov 2, 2020
2 parents f2a4f31 + 7c88a8b commit e6dea7b
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 48 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-pants-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hydrofoil/shaperone-core": patch
---

Update @zazuko/rdf-vocabularies
3 changes: 1 addition & 2 deletions demos/lit-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@rdfjs-elements/rdf-editor": "^0.3.3",
"@rdfjs/fetch-lite": "^2.1.0",
"@tpluscode/rdf-ns-builders": "^0.4",
"@tpluscode/rdf-string": "^0.2.15",
"@tpluscode/rdf-string": "^0.2.21",
"@vaadin/vaadin-app-layout": "^2.1.0",
"@vaadin/vaadin-button": "^2.4.0",
"@vaadin/vaadin-checkbox": "^2.5.0",
Expand Down Expand Up @@ -55,7 +55,6 @@
"@types/rdfjs__fetch-lite": "^2.0.2",
"@types/rdfjs__term-set": "^1.0.1",
"copy-webpack-plugin": "^6.2.1",
"raw-loader": "^4.0.1",
"rimraf": "^3.0.2",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
Expand Down
2 changes: 1 addition & 1 deletion demos/lit-html/src/menu/resource.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import TermSet from '@rdf-esm/term-set'
import { MultiselectComboBox } from 'multiselect-combo-box/multiselect-combo-box'
import { prefixes } from '@zazuko/rdf-vocabularies'
import prefixes from '@zazuko/rdf-vocabularies/prefixes'
import { State } from '../state/models/resource'
import { Menu } from '../menu'

Expand Down
12 changes: 0 additions & 12 deletions demos/lit-html/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ module.exports = merge(
stream: 'readable-stream',
},
},
module: {
rules: [
{
test: /\.nq$/,
use: ['raw-loader'],
},
{
test: /\.ttl$/,
use: ['raw-loader'],
},
],
},
node: {
crypto: true,
},
Expand Down
5 changes: 2 additions & 3 deletions packages/core/models/editors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { createModel } from '@captaincodeman/rdx'
import type { NamedNode, Term } from 'rdf-js'
import { PropertyShape } from '@rdfine/shacl'
import type * as Rdfs from '@rdfine/rdfs'
import { vocabularies } from '@zazuko/rdf-vocabularies/lib/vocabularies'
import cf from 'clownface'
import $rdf from 'rdf-ext'
import type { AnyPointer, GraphPointer } from 'clownface'
Expand Down Expand Up @@ -56,10 +55,10 @@ export const editors = createModel(({

return {
async loadDash() {
const { dash } = await vocabularies({ only: ['dash'] })
const dash = (await import('@zazuko/rdf-vocabularies/datasets/dash')).default
const DashEditors = await import('../../DashEditors')

dispatch.editors.addMetadata(dash)
dispatch.editors.addMetadata($rdf.dataset(dash($rdf)))
dispatch.editors.addMatchers(DashEditors)
},
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/models/forms/lib/stateBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NodeShape, PropertyShape } from '@rdfine/shacl'
import type { MultiPointer, GraphPointer } from 'clownface'
import { shrink } from '@zazuko/rdf-vocabularies'
import { shrink } from '@zazuko/rdf-vocabularies/shrink'
import { dash, rdfs } from '@tpluscode/rdf-ns-builders'
import { NamedNode } from 'rdf-js'
import { ResourceNode } from '@tpluscode/rdfine/RdfResource'
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@rdfine/shacl": "^0.5.2",
"@tpluscode/rdf-ns-builders": "^0.4.0",
"@tpluscode/rdfine": "^0.5.6",
"@zazuko/rdf-vocabularies": "^2020.7.13",
"@zazuko/rdf-vocabularies": "^2020.11.2",
"clownface": "^1.1.0",
"immer": "^7.0.9",
"rdf-ext": "^1.3.0"
Expand Down
37 changes: 9 additions & 28 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3201,15 +3201,15 @@
dependencies:
"@rdf-esm/namespace" "^0.5.1"

"@tpluscode/rdf-string@^0.2.15":
version "0.2.20"
resolved "https://registry.yarnpkg.com/@tpluscode/rdf-string/-/rdf-string-0.2.20.tgz#f026c67f09d8c7ea67be8b0c4f993874a00894d7"
integrity sha512-3CY/nWge3EwNPoApQRP/HMlWlLyn6G+ePHvb/OOhhBd2/k08cWK4X2tCfMKU0weuLTtsDyBduMu7tsjxfQu9Fw==
"@tpluscode/rdf-string@^0.2.21":
version "0.2.21"
resolved "https://registry.yarnpkg.com/@tpluscode/rdf-string/-/rdf-string-0.2.21.tgz#4c313f2f6b0fa26ebefd1cadfc55977b6fc691b2"
integrity sha512-AXcXoJc1xMrSfM2luWvix25lEoF/LnHnO6cjb3Rx4wzVcs88fvS7joPhkYKdKu0FPhQZnixNvXyoE8AIxz6f+w==
dependencies:
"@rdf-esm/data-model" "^0.5.3"
"@rdf-esm/term-map" "^0.5.0"
"@tpluscode/rdf-ns-builders" "^0.4"
"@zazuko/rdf-vocabularies" "^2020.6.29"
"@zazuko/rdf-vocabularies" "^2020.11.2"

"@tpluscode/rdfine@^0.5.6", "@tpluscode/rdfine@^0.5.7":
version "0.5.10"
Expand Down Expand Up @@ -4372,21 +4372,10 @@
resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d"
integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==

"@zazuko/rdf-vocabularies@^2020.6.29":
version "2020.6.29"
resolved "https://registry.yarnpkg.com/@zazuko/rdf-vocabularies/-/rdf-vocabularies-2020.6.29.tgz#2be2daf910e429ac051e280eb361a16398ab8795"
integrity sha512-eu4kqxklCHyA4fYKTp0Kf2SIR2cSR4OlghbAZPl5X/r5lFLuaudWFK0Zg/0l4WF8Tszu9OvkcW9H1DVkUFDT8w==
dependencies:
"@rdfjs/parser-n3" "^1.1.2"
commander "^5.0.0"
rdf-ext "^1.3.0"
readable-stream "^3.6.0"
string-to-stream "^3.0.1"

"@zazuko/rdf-vocabularies@^2020.7.13":
version "2020.7.13"
resolved "https://registry.yarnpkg.com/@zazuko/rdf-vocabularies/-/rdf-vocabularies-2020.7.13.tgz#2848c62f46856021d732caa8a0f03c58808ef7bd"
integrity sha512-oXjc/K46hWdj2oqr06U5jSKE0ihv4oMNzlz12zYSHHg+1tlyhnZa4VZ4R5mx/7PRsg22sUuZ492ZIJNzIvxCPA==
"@zazuko/rdf-vocabularies@^2020.11.2", "@zazuko/rdf-vocabularies@^2020.7.13":
version "2020.11.2"
resolved "https://registry.yarnpkg.com/@zazuko/rdf-vocabularies/-/rdf-vocabularies-2020.11.2.tgz#d82190f4556e47213744bd5d35106f4316ef9adf"
integrity sha512-RhTeKHVX0Deb/qHPeoO2JT9uRmN0HTzGUtzUpe7MJQneYA9wHOOROC+lsEmq+YNGJ0oZtiNc0HZofIbMhd6T7g==
dependencies:
"@rdfjs/parser-n3" "^1.1.2"
commander "^5.0.0"
Expand Down Expand Up @@ -12389,14 +12378,6 @@ [email protected]:
iconv-lite "0.4.24"
unpipe "1.0.0"

raw-loader@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-4.0.1.tgz#14e1f726a359b68437e183d5a5b7d33a3eba6933"
integrity sha512-baolhQBSi3iNh1cglJjA0mYzga+wePk7vdEX//1dTFd+v4TsQlQE0jitJSNF1OIP82rdYulH7otaVmdlDaJ64A==
dependencies:
loader-utils "^2.0.0"
schema-utils "^2.6.5"

rc@^1.2.7:
version "1.2.8"
resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"
Expand Down

0 comments on commit e6dea7b

Please sign in to comment.