View myrule.n3
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
@prefix ex: <http://example.org/> . | |
@prefix as: <https://www.w3.org/ns/activitystreams#> . | |
@prefix ldp: <http://www.w3.org/ns/ldp#> . | |
@prefix pol: <https://www.example.org/ns/policy#> . | |
@prefix fno: <https://w3id.org/function/ontology#> . | |
{ | |
# We need an Announce | |
?id a as:Announce . |
View config.jsonld
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
{ | |
"@context": [ | |
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^5.0.0/components/context.jsonld", | |
"https://linkedsoftwaredependencies.org/bundles/npm/koreografeye/^0.0.0/components/context.jsonld" | |
], | |
"@graph": [ | |
{ | |
"@id": "urn:koreografeye:reasonerInstance", | |
"@type": "EyeJsReasoner", | |
"args": [ "--quiet" , "--nope" , "--pass" ] |
View beetle10.n3
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
@prefix log: <http://www.w3.org/2000/10/swap/log#>. | |
@prefix : <http://example.org/ns#>. | |
# beetle is a car | |
:beetle a :Car. | |
# bob is a person | |
:bob a :Person. | |
# grannysmith apple is green |
View example.js
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
// npm install rdf-parse rdf-serialize stream-to-string streamify-string' | |
// node example.js | |
const rdfParser = require("rdf-parse").default; | |
const rdfSerializer = require("rdf-serialize").default; | |
const stringifyStream = require('stream-to-string'); | |
const streamifyString = require('streamify-string'); | |
doit(` | |
{ | |
"@context": "http://schema.org/", |
View friends.ttl
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
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> . | |
# Syntax: | |
# <> a vcard:Group; | |
# vcard:hasMember <webID1> ; | |
# vcard:hasMember <webID2> ; | |
# (etc) | |
# vcard:hasMember <webIDN> . | |
<> a vcard:Group; | |
vcard:hasMember <https://patrickhochstenbach.net/profile/card#me> . |
View example_notification.jsonld
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
{ | |
"@context": "https://www.w3.org/ns/activitystreams", | |
"id": "urn:uuid:28142b78-af0b-40bf-9e1c-d579a7135fe3", | |
"type": "Announce", | |
"actor": { | |
"id": "https://scholexplorer.openaire.eu/#about", | |
"type": "Organization", | |
"inbox": "https://scholexplorer.openaire.eu/inbox/", | |
"name": "OpenAIRE ScholeXplorer" | |
}, |
View gist:f9ac5f05ad36c30aac6ba6ad2f76a7a9
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
@prefix : <urn:example:> . | |
@prefix log: <http://www.w3.org/2000/10/swap/log#> . | |
@prefix string: <http://www.w3.org/2000/10/swap/string#> . | |
:Let :string "hello world" . | |
(_:X _:Y) log:negativeSurface { | |
:Let :string _:X . | |
# _:X string:upperCase _:Y . |
View gist:7837474d3b3de586e40b8a32aceb4bba
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
@prefix ui: <http://www.w3.org/ns/ui#>. | |
@prefix schema: <http://schema.org/>. | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. | |
@prefix : <#>. | |
:this | |
a ui:Form; | |
ui:parts ( | |
:NameField |
View marc_rdf_dct.fix
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
# Copyright 2022 Patrick.Hochstenbach@UGent.be | |
# License CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0/ | |
# id | |
move_field(_id,'_r._id') | |
# DC - http://www.loc.gov/marc/marc2dc.html | |
# {See also http://www.bl.uk/bibliographic/pdfs/mappingmarc2basicrdf.pdf for alternative} | |
# Language | |
marc_map(008/35-37,lang) |
View gist:afdc7bc5d6a09cec2b12c60755ef1c82
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
@prefix as: <https://www.w3.org/ns/activitystreams#> . | |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
@prefix ldp: <http://www.w3.org/ns/ldp#> . | |
<urn:uuid:28142b78-af0b-40bf-9e1c-d579a7135fe3> | |
a as:Announce ; | |
as:actor <https://scholexplorer.openaire.eu/#about> ; | |
as:context <https://biblio.ugent.be/publication/8646849> ; | |
as:object <urn:uuid:240c0091-b271-4e44-87f7-5598da5b24ad> ; | |
as:origin <https://mellonscholarlycommunication.github.io/about#us> ; |
NewerOlder