Permalink
Browse files

Removing PropertyGraphSail, which has been promoted into Blueprints

  • Loading branch information...
1 parent 67b9967 commit f75c83d0d0b731e93abbf4e7eb19121a4499fe39 @joshsh joshsh committed Mar 9, 2013
@@ -1,7 +0,0 @@
-/target
-.classpath
-.project
-.settings
-*.iml
-.idea
-*~
@@ -1,20 +0,0 @@
-Copyright (C) 2011 Joshua Shinavier.
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.tinkerpop.tinkubator</groupId>
- <artifactId>property-graph-sail</artifactId>
- <version>2.3.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>PropertyGraphSail</name>
- <description>Blueprints property graphs in RDF</description>
-
- <repositories>
- <repository>
- <id>sonatype-nexus-snapshots</id>
- <name>Sonatype Nexus Snapshots</name>
- <url>https://oss.sonatype.org/content/repositories/snapshots</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>aduna-repo</id>
- <name>Aduna repository</name>
- <url>http://repo.aduna-software.org/maven2/releases</url>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- </repository>
- <repository>
- <id>fortytwo</id>
- <name>fortytwo.net Maven repository</name>
- <url>http://fortytwo.net/maven2</url>
- </repository>
- </repositories>
-
- <properties>
- <sesame.version>2.6.10</sesame.version>
- <blueprints.version>2.3.0-SNAPSHOT</blueprints.version>
- <junit.version>4.5</junit.version>
- <sesametools.version>1.7-SNAPSHOT</sesametools.version>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>com.tinkerpop.blueprints</groupId>
- <artifactId>blueprints-core</artifactId>
- <version>${blueprints.version}</version>
- </dependency>
- <dependency>
- <groupId>org.openrdf.sesame</groupId>
- <artifactId>sesame-sail-api</artifactId>
- <version>${sesame.version}</version>
- </dependency>
- <dependency>
- <groupId>org.openrdf.sesame</groupId>
- <artifactId>sesame-queryalgebra-evaluation</artifactId>
- <version>${sesame.version}</version>
- </dependency>
- <dependency>
- <groupId>net.fortytwo.sesametools</groupId>
- <artifactId>common</artifactId>
- <version>${sesametools.version}</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.tinkerpop.blueprints</groupId>
- <artifactId>blueprints-test</artifactId>
- <version>${blueprints.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.openrdf.sesame</groupId>
- <artifactId>sesame-rio-turtle</artifactId>
- <version>${sesame.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.openrdf.sesame</groupId>
- <artifactId>sesame-repository-sail</artifactId>
- <version>${sesame.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.openrdf.sesame</groupId>
- <artifactId>sesame-queryparser-sparql</artifactId>
- <version>${sesame.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <sourceDirectory>src/main/java</sourceDirectory>
- <testSourceDirectory>src/test/java</testSourceDirectory>
- <directory>target</directory>
- <finalName>${project.artifactId}-${project.version}</finalName>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- </resources>
- <testResources>
- <testResource>
- <directory>src/test/resources</directory>
- </testResource>
- </testResources>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
@@ -1,107 +0,0 @@
-package com.tinkerpop.tinkubator.pgsail;
-
-import com.tinkerpop.blueprints.Graph;
-import org.openrdf.model.URI;
-import org.openrdf.model.ValueFactory;
-import org.openrdf.model.impl.URIImpl;
-import org.openrdf.sail.Sail;
-import org.openrdf.sail.SailConnection;
-import org.openrdf.sail.SailException;
-
-import java.io.File;
-
-/**
- * A Sail implementation which provides an RDF view of any Blueprints graph.
- * @see <a href="https://github.com/tinkerpop/tinkubator/wiki/PropertyGraphSail">PropertyGraphSail</a>
- *
- * @author Joshua Shinavier (http://fortytwo.net)
- */
-public class PropertyGraphSail implements Sail {
- public static final String PROPERTY_NS = "http://tinkerpop.com/pgm/property/";
- public static final String VERTEX_NS = "http://tinkerpop.com/pgm/vertex/";
- public static final String EDGE_NS = "http://tinkerpop.com/pgm/edge/";
- public static final String ONTOLOGY_NS = "http://tinkerpop.com/pgm/ontology#";
-
- public static final URI
- EDGE = new URIImpl(ONTOLOGY_NS + "Edge"),
- VERTEX = new URIImpl(ONTOLOGY_NS + "Vertex"),
- ID = new URIImpl(ONTOLOGY_NS + "id"),
- LABEL = new URIImpl(ONTOLOGY_NS + "label"),
- HEAD = new URIImpl(ONTOLOGY_NS + "head"),
- TAIL = new URIImpl(ONTOLOGY_NS + "tail");
-
- public enum Properties {
- sharability,
- weight,
- }
-
- private final PropertyGraphContext context;
-
- /**
- * Instantiates a Sail based on a given Graph.
- *
- * @param graph the Blueprints Graph to expose as an RDF dataset
- */
- public PropertyGraphSail(final Graph graph) {
- context = new PropertyGraphContext(graph, new PropertyGraphValueFactory(graph));
-
- //graph.getIndex("", Vertex.class);
-
- }
-
- public void setVertexPropertyIndex(final String label,
- final String indexName) {
- /*
- Index<Vertex> i = context.graph.getIndex(indexName, Vertex.class);
- if (null == i) {
- throw new IllegalArgumentException("no such vertex index: " + indexName);
- }
-
- context.indices.put(label, i);
- */
- }
-
- public void setDataDir(File file) {
- throw new UnsupportedOperationException();
- }
-
- public File getDataDir() {
- throw new UnsupportedOperationException();
- }
-
- public void initialize() throws SailException {
- // Do nothing.
- }
-
- public void shutDown() throws SailException {
- // Do nothing.
- }
-
- public boolean isWritable() throws SailException {
- return false;
- }
-
- public SailConnection getConnection() throws SailException {
- return new PropertyGraphSailConnection(context);
- }
-
- public ValueFactory getValueFactory() {
- return context.valueFactory;
- }
-
-
-
- static class PropertyGraphContext {
- public final Graph graph;
-
- public final ValueFactory valueFactory;
-
- //public final Map<String, Index<Vertex>> indices = new HashMap<String, Index<Vertex>>();
-
- public PropertyGraphContext(final Graph graph,
- final ValueFactory valueFactory) {
- this.graph = graph;
- this.valueFactory = valueFactory;
- }
- }
-}
Oops, something went wrong.

0 comments on commit f75c83d

Please sign in to comment.