Skip to content

Commit

Permalink
Merge pull request #12 from digita-ai/581936637-Make-used-CachService…
Browse files Browse the repository at this point in the history
…-configurable

replace blazegraph with solid service
  • Loading branch information
wouteraj authored Oct 31, 2020
2 parents abfd478 + ad4d4bc commit 8297662
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum DGTCacheType{
export enum DGTCacheType {
IN_MEMORY = 'IN_MEMORY',
BLAZEGRAPH = 'BLAZEGRAPH'
SOLID = 'SOLID'
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DGTSparqlQueryService } from '../../sparql/services/dgt-sparql-query.se
import { DGTLDResource } from '../../linked-data/models/dgt-ld-resource.model';

@DGTInjectable()
export class DGTCacheBlazeGraphService extends DGTCacheService {
export class DGTCacheSolidService extends DGTCacheService {

public databaseUrl = 'http://192.168.0.224:9999/blazegraph/namespace/kb/sparql';

Expand Down Expand Up @@ -43,7 +43,7 @@ export class DGTCacheBlazeGraphService extends DGTCacheService {

public save<T extends DGTLDResource>(transformer: DGTLDTransformer<T>, objects: T[]): Observable<T[]> {
throw new Error('Method not implemented.');

// toBeSaved is a domain object that has to be transformed to triples
// then a correct sparql query can be formed with the transformer and triples
// TODO Do we need the connection here :
Expand Down
4 changes: 2 additions & 2 deletions projects/dgt-shared-data/src/lib/dgt-shared-data.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { DGTConnectorService } from './connector/services/dgt-connector.service'
import { DGTDataValueTransformerService } from './data-value/services/data-transformer-value.service';

import { DGTCacheInMemoryService } from './cache/services/dgt-cache-in-memory.service';
import { DGTCacheBlazeGraphService } from './cache/services/dgt-cache-blazegraph.service';
import { DGTCacheSolidService } from './cache/services/dgt-cache-solid.service';
import { DGTSparqlQueryService } from './sparql/services/dgt-sparql-query.service';

export const declarations = [
Expand All @@ -35,7 +35,7 @@ export const providers = [
DGTQueryService,
//DGTMockDataService,
DGTCacheInMemoryService,
DGTCacheBlazeGraphService,
DGTCacheSolidService,
DGTWorkflowService,
DGTLDTripleFactoryService,
DGTLDTypeRegistrationTransformerService,
Expand Down
4 changes: 2 additions & 2 deletions projects/dgt-shared-data/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ export { DGTSparqlResult } from './lib/sparql/models/dgt-sparql-result.model';
export { DGTConfigurationBaseWeb } from './lib/configuration/models/dgt-configuration-base-web.model';
export { DGTConnectorService } from './lib/connector/services/dgt-connector.service';
export { DGTHolderService } from './lib/holder/services/dgt-holder-abstract.service';
export { DGTCacheType } from './lib/cache/models/DGTCacheType.model'
export { DGTCacheType } from './lib/cache/models/DGTCacheType.model';
export { DGTCacheInMemoryService } from './lib/cache/services/dgt-cache-in-memory.service';
export { DGTCacheBlazeGraphService } from './lib/cache/services/dgt-cache-blazegraph.service';
export { DGTCacheSolidService } from './lib/cache/services/dgt-cache-solid.service';
export { DGTSparqlQueryService } from './lib/sparql/services/dgt-sparql-query.service';
export { DGTLDResourceTransformerService } from './lib/linked-data/services/dgt-ld-resource-transformer.service';
export { DGTLDFilterConnection } from './lib/linked-data/models/dgt-ld-filter-connection.model';
Expand Down
2 changes: 1 addition & 1 deletion scripts/cloneAll.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
LOCAL_PATH="/Users/sander/digita"
declare -a arr=("[email protected]:digita-ai/dgt-shared.git" "[email protected]:digita-ai/dgt-platform-api.git" "[email protected]:digita-ai/dgt-browser.git" "[email protected]:digita-ai/dgt-platform-web.git" "[email protected]:digita-ai/dgt-platform-public.git" "[email protected]:digita-ai/dgt-docs.git" "[email protected]:digita-ai/dgt-platform-blazegraph.git")
declare -a arr=("[email protected]:digita-ai/dgt-shared.git" "[email protected]:digita-ai/dgt-platform-api.git" "[email protected]:digita-ai/dgt-browser.git" "[email protected]:digita-ai/dgt-platform-web.git" "[email protected]:digita-ai/dgt-platform-public.git" "[email protected]:digita-ai/dgt-docs.git")
USERNAME="John Doe"
EMAIL="[email protected]"

Expand Down

0 comments on commit 8297662

Please sign in to comment.