Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/demo/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const App = () => {
<ProviderLogin callbackUri={`${window.location.origin}/`} />
<FormModel
{...{
modelPath: 'https://khoward.dev.inrupt.net/public/FormModel/datetime.ttl#formRoot',
modelPath: 'https://jmartin.inrupt.net/public/formmodel/multiple.ttl#formRoot',
podPath: 'https://jmartin.inrupt.net/profile/card#me',
settings: {
theme: {
Expand Down
8 changes: 4 additions & 4 deletions src/lib/classes/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export class Notification {
const { namedNode, literal } = termFactory;

const fileName = Date.now();
const filePath = `${to + fileName}.ttl`;
const filePath = `${to + fileName}`;

// This should be in a constant, but we may shift to use solid/context instead
const rdfType = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type';
Expand Down Expand Up @@ -268,10 +268,10 @@ export class Notification {
});

// Add the notification type to the node
writer.addQuad(namedNode(filePath), namedNode(rdfType), namedNode(notificationType));
writer.addQuad(namedNode(''), namedNode(rdfType), namedNode(notificationType));

// Add the license to the node
writer.addQuad(namedNode(filePath), namedNode(licenseType), namedNode(licenseLink));
writer.addQuad(namedNode(''), namedNode(licenseType), namedNode(licenseLink));

shape.forEach(item => {
if (item.property && item.property.includes(':')) {
Expand Down Expand Up @@ -316,7 +316,7 @@ export class Notification {
}

writer.addQuad(
namedNode(filePath),
namedNode(''),
namedNode(`${context[item.property.split(':')[0]]}${item.label}`),
typedValue
);
Expand Down