-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68a8cb8
commit 736bf22
Showing
7 changed files
with
186 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
|
||
export const profile_content = `@prefix : <#>. | ||
@prefix jef: </>. | ||
@prefix ldp: <http://www.w3.org/ns/ldp#>. | ||
@prefix inbox: <../inbox/>. | ||
@prefix pro: <./>. | ||
@prefix ter: <http://www.w3.org/ns/solid/terms#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
@prefix pim: <http://www.w3.org/ns/pim/space#>. | ||
@prefix n2: <http://>. | ||
@prefix n3: <https://>. | ||
@prefix vcard: <http://www.w3.org/2006/vcard/ns#>. | ||
@prefix sch: <http://schema.org/>. | ||
@prefix n1: <http://www.w3.org/ns/auth/acl#>. | ||
pro:card a foaf:PersonalProfileDocument; foaf:maker :me; foaf:primaryTopic :me. | ||
:me | ||
a sch:Person, foaf:Person; | ||
vcard:fn "Local Solid User"; | ||
vcard:role "software developer"; | ||
n1:trustedApp | ||
[ | ||
n1:mode n1:Append, n1:Control, n1:Read, n1:Write; | ||
n1:origin <http://example.org> | ||
]; | ||
ldp:inbox inbox:; | ||
pim:preferencesFile <../settings/prefs.ttl>; | ||
pim:storage jef:; | ||
ter:account jef:; | ||
ter:privateTypeIndex <../settings/privateTypeIndex.ttl>; | ||
ter:publicTypeIndex <../settings/publicTypeIndex.ttl>; | ||
foaf:name "Local Solid User". | ||
`; | ||
|
||
export const prefs_content = `@prefix : <#>. | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
@prefix sp: <http://www.w3.org/ns/pim/space#>. | ||
@prefix dct: <http://purl.org/dc/terms/>. | ||
@prefix c: <../profile/card#>. | ||
@prefix mee: <http://www.w3.org/ns/pim/meeting#>. | ||
<> a sp:ConfigurationFile; dct:title "Preferences file". | ||
c:me | ||
a solid:Developer, solid:PowerUser; | ||
solid:privateTypeIndex <privateTypeIndex.ttl>; | ||
solid:publicTypeIndex <publicTypeIndex.ttl>. | ||
`; | ||
|
||
export const public_content = `@prefix : <#>. | ||
@prefix solid: <https://www.w3.org/ns/solid/terms#>. | ||
@prefix terms: <http://purl.org/dc/terms/>. | ||
@prefix ter: <http://www.w3.org/ns/solid/terms#>. | ||
@prefix bookm: <http://www.w3.org/2002/01/bookmark#>. | ||
<> a solid:ListedDocument, solid:TypeIndex; terms:references :Bookmark. | ||
:Bookmark | ||
a ter:TypeRegistration; | ||
ter:forClass bookm:Bookmark; | ||
ter:instance <../bookmarks.ttl>. | ||
`; | ||
export const private_content = ` | ||
@prefix solid: <https://www.w3.org/ns/solid/terms#>. | ||
<> | ||
a solid:TypeIndex ; | ||
a solid:UnlistedDocument. | ||
`; | ||
|
||
/* ENDS */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {SolidNodeClient} from '../'; | ||
const client = new SolidNodeClient(); | ||
// import * as readline from 'readline-sync'; | ||
|
||
async function main(){ | ||
/* | ||
console.log('\nThis will create a local file-system-based pod.') | ||
console.log( | ||
'Enter a full path to the place you want your pod (e.g. /home/jeff/myPod/)' | ||
); | ||
let basePath = await readline.question(' > ').replace(/\/$/,''); | ||
*/ | ||
let basePath = "/home/jeff/myPod/"; | ||
client.createLocalPod(basePath); | ||
} | ||
main() | ||
|