Skip to content

Commit

Permalink
entity-renderer: use shrink from @zazuko/prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovicm67 committed Oct 24, 2023
1 parent 9c9b362 commit d84a4d0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/entity-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@rdfjs/formats-common": "^3.1.0",
"@rdfjs/to-ntriples": "^2.0.0",
"@zazuko/env": "^1.9.0",
"@zazuko/prefixes": "^2.1.0",
"@zazuko/rdf-entity-webcomponent": "^0.7.7",
"express": "^4.18.2",
"hijackresponse": "^5.0.0",
Expand Down
8 changes: 0 additions & 8 deletions packages/entity-renderer/renderer/common/shrink.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/entity-renderer/renderer/metadata/namedGraphs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import rdf from '@zazuko/env'
import { shrink } from '../common/shrink.js'
import { shrink } from '@zazuko/prefixes'

const namedCounts = (dataset) => {
const namedGraphs = rdf.termMap()
Expand Down
2 changes: 1 addition & 1 deletion packages/entity-renderer/renderer/web-component/N3Term.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import toNT from '@rdfjs/to-ntriples'
import { html } from 'lit'
import { shrink } from '../common/shrink.js'
import { shrink } from '@zazuko/prefixes'

function renderTerm (term) {
if (term.termType === 'NamedNode') {
Expand Down

0 comments on commit d84a4d0

Please sign in to comment.