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
<http://eulersharp.sourceforge.net/2009/12dtb/test#ind0> a <http://eulersharp.sourceforge.net/2009/12dtb/test#N0> . <http://eulersharp.sourceforge.net/2009/12dtb/test#N0> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://eulersharp.sourceforge.net/2009/12dtb/test#N1> . <http://eulersharp.sourceforge.net/2009/12dtb/test#N0> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://eulersharp.sourceforge.net/2009/12dtb/test#I1> . <http://eulersharp.sourceforge.net/2009/12dtb/test#N0> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://eulersharp.sourceforge.net/2009/12dtb/test#J1> . <http://eulersharp.sourceforge.net/2009/12dtb/test#N1> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://eulersharp.sourceforge.net/2009/12dtb/test#N2> . <http://eulersharp.sourceforge.net/2009/12dtb/test#N1> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://eulersharp.sourceforge.net/2009/12dtb/test#I2> . <http://eulersharp.sourceforge.net/2009/12dtb/test#N1> <http://www.w3.org/2000/01/rdf-schema#subCl
@prefix dct: <http://purl.org/dc/terms/> .
@prefix dex: <https://w3id.org/dpv/examples#> .
@prefix dpv: <https://w3id.org/dpv#> .
@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 skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix svpr: <https://specialprivacy.ercim.eu/vocabs/processing#> .
@prefix sw: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix dpv: <https://w3id.org/dpv#> .
@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 skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix svpu: <https://specialprivacy.ercim.eu/vocabs/purposes#> .
@prefix sw: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
{
?uuu ?aaa ?yyy .
}
=>
{
@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",
> 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": {