Skip to content

Commit

Permalink
feat: add support for parsing more RDF formats using rdf-parse
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks authored and joachimvh committed Aug 31, 2020
1 parent 7bd77bb commit e88e680
Show file tree
Hide file tree
Showing 6 changed files with 563 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
BasePermissionsExtractor,
CompositeAsyncHandler,
ExpressHttpServer,
RdfToQuadConverter,
HttpRequest,
PatchingStore,
QuadToTurtleConverter,
Expand All @@ -30,7 +31,6 @@ import {
SimpleTargetExtractor,
SingleThreadedResourceLocker,
SparqlPatchPermissionsExtractor,
TurtleToQuadConverter,
UrlContainerManager,
} from '..';

Expand Down Expand Up @@ -63,7 +63,7 @@ const permissionsExtractor = new CompositeAsyncHandler([
// Will have to see how to best handle this
const store = new SimpleResourceStore(runtimeConfig);
const converter = new CompositeAsyncHandler([
new TurtleToQuadConverter(),
new RdfToQuadConverter(),
new QuadToTurtleConverter(),
]);
const convertingStore = new RepresentationConvertingStore(store, converter);
Expand Down
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export * from './src/server/HttpRequest';
export * from './src/server/HttpResponse';

// Storage/Conversion
export * from './src/storage/conversion/RdfToQuadConverter';
export * from './src/storage/conversion/QuadToTurtleConverter';
export * from './src/storage/conversion/RepresentationConverter';
export * from './src/storage/conversion/TurtleToQuadConverter';
Expand Down
Loading

0 comments on commit e88e680

Please sign in to comment.