Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
#13 - fixing namespace issue temporarily, while we wait for rdflib to…
Browse files Browse the repository at this point in the history
… be importable
  • Loading branch information
james-martin-jd committed Oct 29, 2018
1 parent a89f388 commit 7560f28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generators/app/templates/src/app/services/rdf.service.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Injectable } from '@angular/core';
import { SolidSession } from '../models/solid-session.model';
//import * as $rdf from 'rdflib'
declare let solid: any;
declare let $rdf: any;
//import * as $rdf from 'rdflib'

// TODO: Remove any UI interaction from this service
import { NgForm } from '@angular/forms';
Expand Down Expand Up @@ -30,15 +30,15 @@ export class RdfService {
* as your query makes its way across the web.
* @see http://linkeddata.github.io/rdflib.js/doc/Fetcher.html
*/
fetcher: $rdf.Fetcher;
fetcher = $rdf.Fetcher;

/**
* The UpdateManager allows you to send small changes to the server to “patch” the data as your user changes data in
* real time. It also allows you to subscribe to changes other people make to the same file, keeping track of
* upstream and downstream changes, and signaling any conflict between them.
* @see http://linkeddata.github.io/rdflib.js/doc/UpdateManager.html
*/
updateManager: $rdf.UpdateManager;
updateManager = $rdf.UpdateManager;

constructor (private toastr: ToastrService) {
const fetcherOptions = {};
Expand Down Expand Up @@ -320,7 +320,7 @@ export class RdfService {
* @param {$rdf.namespace} namespace The RDF Namespace
* @param {string?} webId The webId URL (e.g. https://yourpod.solid.community/profile/card#me)
*/
private getValueFromNamespace(node: string, namespace: $rdf.Namespace, webId?: string): string | any {
private getValueFromNamespace(node: string, namespace: any, webId?: string): string | any {
const store = this.store.any($rdf.sym(webId || this.session.webId), namespace(node));
if (store) {
return store.value;
Expand Down

0 comments on commit 7560f28

Please sign in to comment.