Skip to content

Instantly share code, notes, and snippets.

Florian Kleedorfer fkleedorfer

View GitHub Profile
@fkleedorfer
fkleedorfer / AgreementFunction.java
Created Jan 3, 2018
ConcurrentModificationException for Jena 3.5.0 SELECT query
View AgreementFunction.java
package won.utils.agreement;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
import org.apache.commons.io.Charsets;
import org.apache.commons.io.IOUtils;
import org.apache.jena.query.Dataset;
import org.apache.jena.query.DatasetFactory;
@fkleedorfer
fkleedorfer / additional-node-not-covered-by-shape-noerrors.trig
Last active Dec 1, 2017
sample data for SPARQL-based extraction of triples based on a SHACL validation result (here: no errors -> no ValidationResults)
View additional-node-not-covered-by-shape-noerrors.trig
# This example is taken from http://shacl.org/playground and
# transformed to trig, putting shapes, data and validation results in separate graphs
#
# Test case: there is an additional node in the data - ex:Paris - that is not covered by the shape.
# There are no validation results
# Expected result:
# <http://example.org/ns#Bob> schema:address <http://example.org/ns#BobsAddress>
# <http://example.org/ns#Bob> schema:birthDate 1971-07-07
# <http://example.org/ns#Bob> schema:birthPlace <http://example.org/ns#Paris>
# <http://example.org/ns#Bob> schema:deathDate 1998-09-10
View gist:81b32e3235105a4a4743e9fa76ba9332
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix s: <http://schema.org/> .
@prefix ex1: <http://example.org/1/> .
@prefix ex2: <http://example.org/2/> .
@prefix voc: <http://example.org/myvocabulary/> .
@prefix taxi: <http://example.org/taxi/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
View gist:5da0b32a0a11b1e0eb354a907d006e30
@prefix msg: <http://purl.org/webofneeds/message#> .
@prefix conn: <https://node.matchat.org/won/resource/connection/> .
@prefix need: <https://node.matchat.org/won/resource/need/> .
@prefix woncrypt: <http://purl.org/webofneeds/woncrypt#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix cert: <http://www.w3.org/ns/auth/cert#> .
@prefix local: <https://node.matchat.org/won/resource/> .
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix sig: <http://icp.it-risk.iwvi.uni-koblenz.de/ontologies/signature.owl#> .
View gist:866e0bdfb90a1621a865c5879c02a734
# baseURI: http://ontology.tno.nl/logico
# imports: http://www.w3.org/2003/01/geo/wgs84_pos#
# imports: http://www.w3.org/2006/time
# c14n-version: 3
@prefix LogiCO: <http://ontology.tno.nl/logico#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dul: <http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#> .
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
View gist:f9ca53ee1466bf50dba6ce6d3c243b39
Mai 19, 2016 5:50:15 PM org.apache.tomcat.util.net.AprEndpoint$Acceptor run
FEIN: APR socket [461,374,656] opened with remote port [61,460]
Mai 19, 2016 5:50:15 PM org.apache.tomcat.util.net.AprEndpoint processSocketWithOptions
FEIN: socket [461,374,656]
Mai 19, 2016 5:50:15 PM org.apache.tomcat.util.threads.LimitLatch countUpOrAwait
FEIN: Counting up[http-apr-8443-Acceptor-0] latch=1
Mai 19, 2016 5:50:15 PM org.apache.tomcat.util.net.AprEndpoint setSocketOptions
FEIN: Handshake failed: error:14089086:SSL routines:ssl3_get_client_certificate:certificate verify failed
Mai 19, 2016 5:50:15 PM org.apache.tomcat.util.net.AprEndpoint$Poller removeFromPoller
FEIN: Attempting to remove [461,374,656] from poller
View gist:8b4c3932a1de4b51617eac5e03c0be29
19.5.16 17:50:15.517 [Thread-8] INFO o.a.http.impl.execchain.RetryExec - Retrying request to {s}->https://192.168.124.49:8443
Allow unsafe renegotiation: false
Allow legacy hello messages: true
Is initial handshake: true
Is secure renegotiation: false
Ignoring unsupported cipher suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 for TLSv1
Ignoring unsupported cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 for TLSv1
Ignoring unsupported cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA256 for TLSv1
Ignoring unsupported cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 for TLSv1
Ignoring unsupported cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 for TLSv1
You can’t perform that action at this time.