mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Replace rdf-js import with @rdfjs/types
This commit is contained in:
parent
19f9ef7882
commit
e09b53b20d
@ -7,7 +7,7 @@ import type {
|
|||||||
IPolicy,
|
IPolicy,
|
||||||
} from '@solid/access-control-policy';
|
} from '@solid/access-control-policy';
|
||||||
import type { Store } from 'n3';
|
import type { Store } from 'n3';
|
||||||
import type { NamedNode, Term } from 'rdf-js';
|
import type { NamedNode, Term } from '@rdfjs/types';
|
||||||
import { ACP } from '../util/Vocabularies';
|
import { ACP } from '../util/Vocabularies';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { NamedNode } from 'rdf-js';
|
import type { NamedNode } from '@rdfjs/types';
|
||||||
import { SOLID_META } from '../../util/Vocabularies';
|
import { SOLID_META } from '../../util/Vocabularies';
|
||||||
import type { RepresentationMetadata } from '../representation/RepresentationMetadata';
|
import type { RepresentationMetadata } from '../representation/RepresentationMetadata';
|
||||||
import type { AuxiliaryIdentifierStrategy } from './AuxiliaryIdentifierStrategy';
|
import type { AuxiliaryIdentifierStrategy } from './AuxiliaryIdentifierStrategy';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { NamedNode } from 'rdf-js';
|
import type { NamedNode } from '@rdfjs/types';
|
||||||
import type { HttpRequest } from '../../../server/HttpRequest';
|
import type { HttpRequest } from '../../../server/HttpRequest';
|
||||||
import { matchesAuthorizationScheme } from '../../../util/HeaderUtil';
|
import { matchesAuthorizationScheme } from '../../../util/HeaderUtil';
|
||||||
import { SOLID_META } from '../../../util/Vocabularies';
|
import { SOLID_META } from '../../../util/Vocabularies';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { parse } from 'cookie';
|
import { parse } from 'cookie';
|
||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { NamedNode } from 'rdf-js';
|
import type { NamedNode } from '@rdfjs/types';
|
||||||
import type { HttpRequest } from '../../../server/HttpRequest';
|
import type { HttpRequest } from '../../../server/HttpRequest';
|
||||||
import { SOLID_META } from '../../../util/Vocabularies';
|
import { SOLID_META } from '../../../util/Vocabularies';
|
||||||
import type { RepresentationMetadata } from '../../representation/RepresentationMetadata';
|
import type { RepresentationMetadata } from '../../representation/RepresentationMetadata';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Term } from 'rdf-js';
|
import type { Term } from '@rdfjs/types';
|
||||||
import { getLoggerFor } from '../../logging/LogUtil';
|
import { getLoggerFor } from '../../logging/LogUtil';
|
||||||
import type { ResourceStore } from '../../storage/ResourceStore';
|
import type { ResourceStore } from '../../storage/ResourceStore';
|
||||||
import { BadRequestHttpError } from '../../util/errors/BadRequestHttpError';
|
import { BadRequestHttpError } from '../../util/errors/BadRequestHttpError';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Term } from 'rdf-js';
|
import type { Term } from '@rdfjs/types';
|
||||||
import type { HttpResponse } from '../../../server/HttpResponse';
|
import type { HttpResponse } from '../../../server/HttpResponse';
|
||||||
import { addHeader } from '../../../util/HeaderUtil';
|
import { addHeader } from '../../../util/HeaderUtil';
|
||||||
import { ACL, AUTH } from '../../../util/Vocabularies';
|
import { ACL, AUTH } from '../../../util/Vocabularies';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Quad } from 'rdf-js';
|
import type { Quad } from '@rdfjs/types';
|
||||||
import type { Patch } from './Patch';
|
import type { Patch } from './Patch';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DataFactory, Store } from 'n3';
|
import { DataFactory, Store } from 'n3';
|
||||||
import type { BlankNode, DefaultGraph, Literal, NamedNode, Quad, Term } from 'rdf-js';
|
import type { BlankNode, DefaultGraph, Literal, NamedNode, Quad, Term } from '@rdfjs/types';
|
||||||
import { getLoggerFor } from '../../logging/LogUtil';
|
import { getLoggerFor } from '../../logging/LogUtil';
|
||||||
import { ContentType, SIMPLE_MEDIA_RANGE } from '../../util/Header';
|
import { ContentType, SIMPLE_MEDIA_RANGE } from '../../util/Header';
|
||||||
import { isTerm, toLiteral, toNamedTerm, toObjectTerm } from '../../util/TermUtil';
|
import { isTerm, toLiteral, toNamedTerm, toObjectTerm } from '../../util/TermUtil';
|
||||||
|
@ -3,7 +3,7 @@ import { KeysRdfParseJsonLd } from '@comunica/context-entries';
|
|||||||
import { parse, toSeconds } from 'iso8601-duration';
|
import { parse, toSeconds } from 'iso8601-duration';
|
||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { Store } from 'n3';
|
import type { Store } from 'n3';
|
||||||
import type { NamedNode, Term } from 'rdf-js';
|
import type { NamedNode, Term } from '@rdfjs/types';
|
||||||
import rdfParser from 'rdf-parse';
|
import rdfParser from 'rdf-parse';
|
||||||
import SHACLValidator from 'rdf-validate-shacl';
|
import SHACLValidator from 'rdf-validate-shacl';
|
||||||
import { v4 } from 'uuid';
|
import { v4 } from 'uuid';
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import type { Quad } from '@rdfjs/types';
|
import type { NamedNode, Quad, Term } from '@rdfjs/types';
|
||||||
import arrayifyStream from 'arrayify-stream';
|
import arrayifyStream from 'arrayify-stream';
|
||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { NamedNode, Term } from 'rdf-js';
|
|
||||||
import { v4 as uuid } from 'uuid';
|
import { v4 as uuid } from 'uuid';
|
||||||
import type { AuxiliaryStrategy } from '../http/auxiliary/AuxiliaryStrategy';
|
import type { AuxiliaryStrategy } from '../http/auxiliary/AuxiliaryStrategy';
|
||||||
import { BasicRepresentation } from '../http/representation/BasicRepresentation';
|
import { BasicRepresentation } from '../http/representation/BasicRepresentation';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { Readable } from 'node:stream';
|
import type { Readable } from 'node:stream';
|
||||||
import type { Stats } from 'fs-extra';
|
import type { Stats } from 'fs-extra';
|
||||||
import { createReadStream, createWriteStream, ensureDir, lstat, opendir, remove, stat } from 'fs-extra';
|
import { createReadStream, createWriteStream, ensureDir, lstat, opendir, remove, stat } from 'fs-extra';
|
||||||
import type { Quad } from 'rdf-js';
|
import type { Quad } from '@rdfjs/types';
|
||||||
import type { Representation } from '../../http/representation/Representation';
|
import type { Representation } from '../../http/representation/Representation';
|
||||||
import { RepresentationMetadata } from '../../http/representation/RepresentationMetadata';
|
import { RepresentationMetadata } from '../../http/representation/RepresentationMetadata';
|
||||||
import type { ResourceIdentifier } from '../../http/representation/ResourceIdentifier';
|
import type { ResourceIdentifier } from '../../http/representation/ResourceIdentifier';
|
||||||
|
@ -2,7 +2,7 @@ import type { Readable } from 'node:stream';
|
|||||||
import arrayifyStream from 'arrayify-stream';
|
import arrayifyStream from 'arrayify-stream';
|
||||||
import { SparqlEndpointFetcher } from 'fetch-sparql-endpoint';
|
import { SparqlEndpointFetcher } from 'fetch-sparql-endpoint';
|
||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { NamedNode, Quad } from 'rdf-js';
|
import type { NamedNode, Quad } from '@rdfjs/types';
|
||||||
import type {
|
import type {
|
||||||
ConstructQuery,
|
ConstructQuery,
|
||||||
GraphPattern,
|
GraphPattern,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Readable } from 'node:stream';
|
import type { Readable } from 'node:stream';
|
||||||
import orderBy from 'lodash.orderby';
|
import orderBy from 'lodash.orderby';
|
||||||
import type { Quad } from 'rdf-js';
|
import type { Quad } from '@rdfjs/types';
|
||||||
import { BasicRepresentation } from '../../http/representation/BasicRepresentation';
|
import { BasicRepresentation } from '../../http/representation/BasicRepresentation';
|
||||||
import type { Representation } from '../../http/representation/Representation';
|
import type { Representation } from '../../http/representation/Representation';
|
||||||
import type { ResourceIdentifier } from '../../http/representation/ResourceIdentifier';
|
import type { ResourceIdentifier } from '../../http/representation/ResourceIdentifier';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { NamedNode, Term } from 'rdf-js';
|
import type { NamedNode, Term } from '@rdfjs/types';
|
||||||
import { BasicRepresentation } from '../../http/representation/BasicRepresentation';
|
import { BasicRepresentation } from '../../http/representation/BasicRepresentation';
|
||||||
import type { Representation } from '../../http/representation/Representation';
|
import type { Representation } from '../../http/representation/Representation';
|
||||||
import { RepresentationMetadata } from '../../http/representation/RepresentationMetadata';
|
import { RepresentationMetadata } from '../../http/representation/RepresentationMetadata';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Readable } from 'node:stream';
|
import type { Readable } from 'node:stream';
|
||||||
import { DataFactory, StreamWriter } from 'n3';
|
import { DataFactory, StreamWriter } from 'n3';
|
||||||
import type { Quad } from 'rdf-js';
|
import type { Quad } from '@rdfjs/types';
|
||||||
import rdfSerializer from 'rdf-serialize';
|
import rdfSerializer from 'rdf-serialize';
|
||||||
import { BasicRepresentation } from '../../http/representation/BasicRepresentation';
|
import { BasicRepresentation } from '../../http/representation/BasicRepresentation';
|
||||||
import type { Representation } from '../../http/representation/Representation';
|
import type { Representation } from '../../http/representation/Representation';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { Quad } from 'rdf-js';
|
import type { Quad } from '@rdfjs/types';
|
||||||
import type { AuxiliaryStrategy } from '../../http/auxiliary/AuxiliaryStrategy';
|
import type { AuxiliaryStrategy } from '../../http/auxiliary/AuxiliaryStrategy';
|
||||||
import type { RdfDatasetRepresentation } from '../../http/representation/RdfDatasetRepresentation';
|
import type { RdfDatasetRepresentation } from '../../http/representation/RdfDatasetRepresentation';
|
||||||
import { getLoggerFor } from '../../logging/LogUtil';
|
import { getLoggerFor } from '../../logging/LogUtil';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { QueryEngine } from '@comunica/query-sparql';
|
import { QueryEngine } from '@comunica/query-sparql';
|
||||||
import arrayifyStream from 'arrayify-stream';
|
import arrayifyStream from 'arrayify-stream';
|
||||||
import type { Store } from 'n3';
|
import type { Store } from 'n3';
|
||||||
import type { Bindings, Quad, Term } from 'rdf-js';
|
import type { Bindings, Quad, Term } from '@rdfjs/types';
|
||||||
import { mapTerms } from 'rdf-terms';
|
import { mapTerms } from 'rdf-terms';
|
||||||
import { Generator, Wildcard } from 'sparqljs';
|
import { Generator, Wildcard } from 'sparqljs';
|
||||||
import type { SparqlGenerator } from 'sparqljs';
|
import type { SparqlGenerator } from 'sparqljs';
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
import type { Readable } from 'node:stream';
|
import type { Readable } from 'node:stream';
|
||||||
import type { NamedNode } from '@rdfjs/types';
|
import type { NamedNode, Quad, Term } from '@rdfjs/types';
|
||||||
import arrayifyStream from 'arrayify-stream';
|
import arrayifyStream from 'arrayify-stream';
|
||||||
import type { ParserOptions } from 'n3';
|
import type { ParserOptions } from 'n3';
|
||||||
import { StreamParser, StreamWriter } from 'n3';
|
import { StreamParser, StreamWriter } from 'n3';
|
||||||
import type { Quad, Term } from 'rdf-js';
|
|
||||||
import type { Guarded } from './GuardedStream';
|
import type { Guarded } from './GuardedStream';
|
||||||
import { guardedStreamFrom, pipeSafely } from './StreamUtil';
|
import { guardedStreamFrom, pipeSafely } from './StreamUtil';
|
||||||
import { toNamedTerm } from './TermUtil';
|
import { toNamedTerm } from './TermUtil';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { Literal, NamedNode, Term } from 'rdf-js';
|
import type { Literal, NamedNode, Term } from '@rdfjs/types';
|
||||||
|
|
||||||
const { namedNode, literal } = DataFactory;
|
const { namedNode, literal } = DataFactory;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { NamedNode } from 'rdf-js';
|
import type { NamedNode } from '@rdfjs/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A `Record` in which each value is a concatenation of the baseUrl and its key.
|
* A `Record` in which each value is a concatenation of the baseUrl and its key.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { NamedNode } from 'rdf-js';
|
import type { NamedNode } from '@rdfjs/types';
|
||||||
import { RepresentationMetadata } from '../../http/representation/RepresentationMetadata';
|
import { RepresentationMetadata } from '../../http/representation/RepresentationMetadata';
|
||||||
import { toLiteral, toNamedTerm } from '../TermUtil';
|
import { toLiteral, toNamedTerm } from '../TermUtil';
|
||||||
import { HTTP, SOLID_ERROR, XSD } from '../Vocabularies';
|
import { HTTP, SOLID_ERROR, XSD } from '../Vocabularies';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Parser } from 'n3';
|
import { Parser } from 'n3';
|
||||||
import type { Quad } from 'rdf-js';
|
import type { Quad } from '@rdfjs/types';
|
||||||
import type { Credentials } from '../../../src/authentication/Credentials';
|
import type { Credentials } from '../../../src/authentication/Credentials';
|
||||||
import { AcpReader } from '../../../src/authorization/AcpReader';
|
import { AcpReader } from '../../../src/authorization/AcpReader';
|
||||||
import { AccessMode } from '../../../src/authorization/permissions/Permissions';
|
import { AccessMode } from '../../../src/authorization/permissions/Permissions';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { Quad } from 'rdf-js';
|
import type { Quad } from '@rdfjs/types';
|
||||||
import { N3PatchModesExtractor } from '../../../../src/authorization/permissions/N3PatchModesExtractor';
|
import { N3PatchModesExtractor } from '../../../../src/authorization/permissions/N3PatchModesExtractor';
|
||||||
import type { AccessMap } from '../../../../src/authorization/permissions/Permissions';
|
import type { AccessMap } from '../../../../src/authorization/permissions/Permissions';
|
||||||
import { AccessMode } from '../../../../src/authorization/permissions/Permissions';
|
import { AccessMode } from '../../../../src/authorization/permissions/Permissions';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import 'jest-rdf';
|
import 'jest-rdf';
|
||||||
import type { BlankNode } from 'n3';
|
import type { BlankNode } from 'n3';
|
||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { NamedNode, Quad } from 'rdf-js';
|
import type { NamedNode, Quad } from '@rdfjs/types';
|
||||||
import { RepresentationMetadata } from '../../../../src/http/representation/RepresentationMetadata';
|
import { RepresentationMetadata } from '../../../../src/http/representation/RepresentationMetadata';
|
||||||
import { ContentType } from '../../../../src/util/Header';
|
import { ContentType } from '../../../../src/util/Header';
|
||||||
import { CONTENT_TYPE_TERM, RDFS, SOLID_META } from '../../../../src/util/Vocabularies';
|
import { CONTENT_TYPE_TERM, RDFS, SOLID_META } from '../../../../src/util/Vocabularies';
|
||||||
|
@ -3,7 +3,7 @@ import { Readable } from 'node:stream';
|
|||||||
import arrayifyStream from 'arrayify-stream';
|
import arrayifyStream from 'arrayify-stream';
|
||||||
import { SparqlEndpointFetcher } from 'fetch-sparql-endpoint';
|
import { SparqlEndpointFetcher } from 'fetch-sparql-endpoint';
|
||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { Quad } from 'rdf-js';
|
import type { Quad } from '@rdfjs/types';
|
||||||
import { BasicRepresentation } from '../../../../src/http/representation/BasicRepresentation';
|
import { BasicRepresentation } from '../../../../src/http/representation/BasicRepresentation';
|
||||||
import { RepresentationMetadata } from '../../../../src/http/representation/RepresentationMetadata';
|
import { RepresentationMetadata } from '../../../../src/http/representation/RepresentationMetadata';
|
||||||
import { SparqlDataAccessor } from '../../../../src/storage/accessors/SparqlDataAccessor';
|
import { SparqlDataAccessor } from '../../../../src/storage/accessors/SparqlDataAccessor';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import 'jest-rdf';
|
import 'jest-rdf';
|
||||||
import { DataFactory } from 'n3';
|
import { DataFactory } from 'n3';
|
||||||
import type { Quad } from 'rdf-js';
|
import type { Quad } from '@rdfjs/types';
|
||||||
import { BasicRepresentation } from '../../../../src/http/representation/BasicRepresentation';
|
import { BasicRepresentation } from '../../../../src/http/representation/BasicRepresentation';
|
||||||
import type { Patch } from '../../../../src/http/representation/Patch';
|
import type { Patch } from '../../../../src/http/representation/Patch';
|
||||||
import type { RdfDatasetRepresentation } from '../../../../src/http/representation/RdfDatasetRepresentation';
|
import type { RdfDatasetRepresentation } from '../../../../src/http/representation/RdfDatasetRepresentation';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import 'jest-rdf';
|
import 'jest-rdf';
|
||||||
import { DataFactory, Store } from 'n3';
|
import { DataFactory, Store } from 'n3';
|
||||||
import type { Quad } from 'rdf-js';
|
import type { Quad } from '@rdfjs/types';
|
||||||
import type { Algebra } from 'sparqlalgebrajs';
|
import type { Algebra } from 'sparqlalgebrajs';
|
||||||
import { translate } from 'sparqlalgebrajs';
|
import { translate } from 'sparqlalgebrajs';
|
||||||
import { BasicRepresentation } from '../../../../src/http/representation/BasicRepresentation';
|
import { BasicRepresentation } from '../../../../src/http/representation/BasicRepresentation';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user