Skip to content

Instantly share code, notes, and snippets.

View stain's full-sized avatar

Stian Soiland-Reyes stain

View GitHub Profile
@stain
stain / gist:6ef8b2827d79dfabc460
Created February 12, 2015 14:49
Virtuoso 7.2.0 fails building on Ubuntu 14.04
This file has been truncated, but you can view the full file.
stain@biggie-utopic:~$ docker pull ubuntu:14.04
Pulling repository ubuntu
5ba9dab47459: Download complete
511136ea3c5a: Download complete
27d47432a69b: Download complete
5f92234dcf1e: Download complete
51a9c7c1f8bb: Download complete
stain@biggie-utopic:~$ docker run -it ubuntu:14.04 bash
root@74add11e2e09:/# apt-get update
Ign http://archive.ubuntu.com trusty InRelease
>>> def negate(f):
... return lambda *args,**kwargs: not f(*args, **kwargs)
...
>>> a = ["hello", "Hello there", "My name is"]
>>> def contains_space(s):
... return " " in s
...
>>> list(filter(contains_space, a))
['Hello there', 'My name is']
>>> list(filter(negate(contains_space), a))
import org.apache.jena.riot.Lang;
import org.apache.jena.riot.lang.PipedTriplesStream;
import org.apache.jena.riot.system.StreamOps;
import org.apache.jena.riot.system.StreamRDF;
import org.apache.jena.riot.system.StreamRDFWriter;
import org.junit.Test;
import com.hp.hpl.jena.datatypes.xsd.XSDDatatype;
import com.hp.hpl.jena.graph.Node;
import com.hp.hpl.jena.graph.Triple;
FROM jenkins
COPY plugins.txt /usr/share/jenkins/plugins.txt
RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins.txt
FROM jenkins
COPY plugins.txt /usr/share/jenkins/plugins.txt
RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins.txt
USER root
RUN zip -d /usr/share/jenkins/jenkins.war WEB-INF/plugins/subversion.hpi
USER jenkins
Delivered-To: stian@s11.no
Received: by 10.28.194.7 with SMTP id s7csp284007wmf;
Thu, 26 Mar 2015 01:57:09 -0700 (PDT)
X-Received: by 10.70.92.132 with SMTP id cm4mr24666356pdb.18.1427360228839;
Thu, 26 Mar 2015 01:57:08 -0700 (PDT)
Return-Path: <>
Received: from mail.apache.org (hermes.apache.org. [140.211.11.3])
by mx.google.com with SMTP id j12si7469396pdm.58.2015.03.26.01.57.08
for <stian@s11.no>;
Delivered-To: stian@s11.no
Received: by 10.28.194.7 with SMTP id s7csp319380wmf;
Thu, 26 Mar 2015 04:18:41 -0700 (PDT)
X-Received: by 10.70.131.107 with SMTP id ol11mr25832359pdb.63.1427368720951;
Thu, 26 Mar 2015 04:18:40 -0700 (PDT)
Return-Path: <>
Received: from mail.apache.org (hermes.apache.org. [140.211.11.3])
by mx.google.com with SMTP id cu5si7897968pbc.126.2015.03.26.04.18.40
for <stian@s11.no>;
package com.example.commonsrdf;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.commons.rdf.api.BlankNode;
{
"@context" : {
"rest" : {
"@id" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",
"@type" : "@id"
},
"first" : {
"@id" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#first",
"@type" : "@id"
},
{
"metadata": {
"name": "",
"signature": "sha256:e4bf083ad34af402f5d9d62b77788b16d22617dfda1948f4529c7882f31eb364"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [