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
@jeswr
jeswr / owl.n3
Created June 17, 2024 13:06
OWL rules serialised in Notation3
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
{
?x ?p ?y .
?p rdfs:domain ?c .
}
This file has been truncated, but you can view the full file.
[2024-06-07T11:46:39.340Z] WARN: Error occurred while filtering. { error: { [Error: Argument types not valid for operator: '"contains"' with '[{"expressionType":"term","value":"http://www.w3.org/2002/07/owl#Ontology","termType":"namedNode"},{"expressionType":"term","typedValue":"Purpose","dataType":"http://www.w3.org/2001/XMLSchema#string","strValue":"Purpose","termType":"literal"}]] args: [ NamedNode { expressionType: 'term', value: 'http://www.w3.org/2002/07/owl#Ontology', termType: 'namedNode' }, StringLiteral { expressionType: 'term', typedValue: 'Purpose', dataType: 'http://www.w3.org/2001/XMLSchema#string', strValue: 'Purpose', language: undefined, termType: 'literal' } ], op: 'contains' }, bindings: '{\n "s": "http://www.w3.org/ns/odrl/2/",\n "p": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",\n "o": "http://www.w3.org/2002/07/owl#Ontology"\n}', actor: 'urn:comunica:default:query-operation/actors#filter' }
[2024-06-07T11:46:39.344Z] WARN: Error occurred while filtering. { error:
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",
> [email protected] 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/[email protected] test
> npm run test:ts && npm run jest --detectOpenHandles --runInBand
> @solid/[email protected] test:ts
> tsc -p test --noEmit
jesse@ranchmorty:~/css-4/CommunitySolidServer$ npm t
> @solid/[email protected] test
> npm run test:ts && npm run jest
> @solid/[email protected] 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#> .