Skip to content

Instantly share code, notes, and snippets.

@evren
evren / PrintProtobufLogs.java
Created February 17, 2017 01:29
Example showing how to read Stardog's audit log
/*
* Copyright (c) 2017 Stardog Union. <http://www.stardog.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@evren
evren / CreateDBWithNamedGraphs.java
Last active October 2, 2019 08:29
Showing examples of efficiently loading multiple files into different named graphs using Stardog
// Copyright (c) 2013 -- Clark & Parsia, LLC. <http://www.clarkparsia.com>
// For more information about licensing and copyright of this software, please contact inquiries@clarkparsia.com.
package com.complexible.stardog;
import java.io.File;
import java.io.PrintStream;
import java.nio.file.Path;
import java.util.Map;
import java.util.concurrent.TimeUnit;
@evren
evren / commands.log
Last active December 1, 2017 03:59
Example of using Stardog for data validation for the example described at http://www.w3.org/2012/12/rdf-val/SOTA.
# Stardog commands and the output for RDF validation example
# First create the Stardog database and load data
$ ./stardog-admin db create -n sota sota-data.ttl
Bulk loading data to new database.
Loading data completed...Loaded 25 triples in 00:00:00 @ 0.4K triples/sec.
Successfully created database 'sota'.
# Then add the constraints to the database