Skip to content

Instantly share code, notes, and snippets.

View jeswr's full-sized avatar
🚀
building the things

Jesse Wright jeswr

🚀
building the things
View GitHub Profile
import { Quad } from "@rdfjs/types";
import Writer from "@shexjs/writer";
import * as fs from 'fs';
import { DataFactory, Store } from "n3";
import * as path from 'path';
import { rdf } from "rdf-namespaces";
import { parse } from 'shaclc-parse';
import { Schema } from "shexj";
const { namedNode, literal, defaultGraph, quad } = DataFactory;
{
"@context": [
"https://www.w3.org/ns/solid/oidc-context.jsonld"
],
"client_name": "Browser test app",
"client_id": "",
"redirect_uris": [
"http://localhost:3001/"
],
"scope": "openid webid",
> cmt@1.0.0 test
> ts-node test.ts
========================================================================================================================================================================================================
========================================================================================================================================================================================================
SELECT * WHERE { ?s ?p ?o }
========================================================================================================================================================================================================
[
[
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"id": "http://example.edu/credentials/3732",
"type": ["VerifiableCredential", "UniversityDegreeCredential"],
"issuer": "https://example.edu/issuers/14",
"issuanceDate": "2010-01-01T19:23:24Z",
"credentialSubject": {
Summary of all failing tests
FAIL test/integration/Quota.test.ts (35.599 s)
● A quota server › with pod quota enabled › should return a 413 when the quota is exceeded during write.
ENOENT: no such file or directory, mkdir '/home/jeswr/CommunitySolidServer/test/tmp/quota-temp'
● A quota server › with pod quota enabled › should return a 413 when the quota is exceeded during write.
jesse@ranchmorty:~/css-4/CommunitySolidServer$ npm t -- --detectOpenHandles --runInBand
> @solid/community-server@5.1.0 test
> npm run test:ts && npm run jest --detectOpenHandles --runInBand
> @solid/community-server@5.1.0 test:ts
> tsc -p test --noEmit
jesse@ranchmorty:~/css-4/CommunitySolidServer$ npm t
> @solid/community-server@5.1.0 test
> npm run test:ts && npm run jest
> @solid/community-server@5.1.0 test:ts
> tsc -p test --noEmit
@jeswr
jeswr / foaf.ttl
Created September 12, 2022 13:59
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix wot: <http://xmlns.com/wot/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ns0: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix schema: <http://schema.org/> .
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
(?p1 http://xmlns.com/foaf/0.1/knows ?p2) -> (?p1 https://schema.org/knows ?p2)
(?s http://www.w3.org/2002/07/owl#sameAs ?o) ^ (?s ?p1 ?o1) -> (?o ?p1 ?o1)
(?s http://www.w3.org/2002/07/owl#sameAs ?o) ^ (?o ?p1 ?o1) -> (?s ?p1 ?o1)