Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #271 from eclipse/issues/GH-619-public-api
Browse files Browse the repository at this point in the history
Public API clarifications for SHACL, native store and other storage modules
  • Loading branch information
Jeen Broekstra authored Aug 13, 2019
2 parents e24a470 + a997455 commit 1ed76a3
Show file tree
Hide file tree
Showing 24 changed files with 181 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.util.Iterator;
import java.util.List;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.model.Resource;
import org.eclipse.rdf4j.model.Statement;
Expand All @@ -23,7 +24,12 @@
*
* @author sauermann
* @author andriy.nikolov
*
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
@Deprecated
@InternalUseOnly
public class LuceneSailBuffer {

private static class ContextAwareStatementImpl implements Statement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@

import java.util.Iterator;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
import org.eclipse.rdf4j.common.iteration.CloseableIteration;
import org.eclipse.rdf4j.common.iteration.IteratorIteration;

/**
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
@Deprecated
@InternalUseOnly
public class IteratorCloseableIteration<E, X extends Exception> extends IteratorIteration<E, X>
implements CloseableIteration<E, X> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@
import java.util.List;
import java.util.Map;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;

/**
* @author andriy.nikolov
*
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
@Deprecated
@InternalUseOnly
public class MapOfListMaps<Index1Type, Index2Type, DataType> {

private final Map<Index1Type, Map<Index2Type, List<DataType>>> data;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@Deprecated
@InternalUseOnly
/**
* MemoryStore-specific implementations of the core RDF model objects.
*
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
package org.eclipse.rdf4j.sail.memory.model;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*
* @author Arjohn Kampman
*/
@SuppressWarnings("deprecation")
final class SortedRecordCache extends RecordCache {

/*------------*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
*
* @author Arjohn Kampman
*/
@SuppressWarnings("deprecation")
class TripleStore implements Closeable {

/*-----------*
Expand Down Expand Up @@ -407,10 +408,6 @@ private void reindex(Set<String> currentIndexSpecs, Set<String> newIndexSpecs) t
}
}

private String getCurrentIndexSpecStr() {
return properties.getProperty(INDEXES_KEY);
}

@Override
public void close() throws IOException {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.nio.charset.StandardCharsets;
import java.util.Optional;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
import org.eclipse.rdf4j.common.concurrent.locks.Lock;
import org.eclipse.rdf4j.common.concurrent.locks.ReadWriteLockManager;
import org.eclipse.rdf4j.common.concurrent.locks.WritePrefReadWriteLockManager;
Expand All @@ -38,7 +39,12 @@
* File-based indexed storage and retrieval of RDF values. ValueStore maps RDF values to integer IDs and vice-versa.
*
* @author Arjohn Kampman
*
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
@InternalUseOnly
@Deprecated
public class ValueStore extends AbstractValueFactory {

/*-----------*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import java.io.Serializable;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
import org.eclipse.rdf4j.sail.nativerdf.model.NativeValue;

/**
Expand All @@ -17,7 +18,12 @@
* ValueStore's revision object is changed whenever values are removed from it or IDs are changed.
*
* @author Arjohn Kampman
*
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
@Deprecated
@InternalUseOnly
public class ValueStoreRevision implements Serializable {

/*-----------*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@Deprecated
@InternalUseOnly
/**
* B-Tree on disk implementation.
*
* @deprecated since 3.0. This package is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
package org.eclipse.rdf4j.sail.nativerdf.btree;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@Deprecated
@InternalUseOnly
/**
* File and data storage functionality.
*
* @deprecated Since 3.0. This package is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
package org.eclipse.rdf4j.sail.nativerdf.datastore;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@Deprecated
@InternalUseOnly
/**
* Native implementations of the RDF Model interfaces.
*
* @deprecated since 3.0. This package is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
package org.eclipse.rdf4j.sail.nativerdf.model;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* A repository wrapper which supports auto-loading of datasets specified in a query.
*/
package org.eclipse.rdf4j.repository.dataset;

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* entries to be garbage-collected when no longer used.
*
* @author Mark
* @deprecated this feature is for internal use only: its existence, signature or behavior may change without warning
* from one release to the next.
*/
public class NonSerializables {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
* Not thread-safe.
*
* @author Mark
*
* @deprecated this feature is for internal use only: its existence, signature or behavior may change without warning
* from one release to the next.
*/
public class SailModel extends AbstractModel {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@Deprecated
@InternalUseOnly
/**
*
* @deprecated since 3.0. This package is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
package org.eclipse.rdf4j.sail.model;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@Deprecated
@InternalUseOnly
/**
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
package org.eclipse.rdf4j.sail.shacl.AST;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
/*******************************************************************************
* Copyright (c) 2019 Eclipse RDF4J contributors.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*******************************************************************************/

package org.eclipse.rdf4j.sail.shacl;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
import org.eclipse.rdf4j.common.iteration.CloseableIteration;

/**
*
*
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
@Deprecated
@InternalUseOnly
public class CloseablePeakableIteration<E, X extends Exception> implements CloseableIteration<E, X> {

CloseableIteration<E, X> parent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,25 @@

package org.eclipse.rdf4j.sail.shacl;

import org.eclipse.rdf4j.sail.Sail;
import org.eclipse.rdf4j.sail.SailConnection;
import org.eclipse.rdf4j.sail.shacl.planNodes.BufferedSplitter;
import org.eclipse.rdf4j.sail.shacl.planNodes.PlanNode;

import java.io.Closeable;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentLinkedQueue;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
import org.eclipse.rdf4j.sail.Sail;
import org.eclipse.rdf4j.sail.SailConnection;
import org.eclipse.rdf4j.sail.shacl.planNodes.BufferedSplitter;
import org.eclipse.rdf4j.sail.shacl.planNodes.PlanNode;

/**
*
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*
*/
@Deprecated
@InternalUseOnly
public class ConnectionsGroup implements Closeable {

private final ShaclSail sail;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
/*******************************************************************************
* Copyright (c) 2019 Eclipse RDF4J contributors.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*******************************************************************************/

package org.eclipse.rdf4j.sail.shacl;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;

/**
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
@Deprecated
@InternalUseOnly
public class GlobalValidationExecutionLogging {

public static boolean loggingEnabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

import org.eclipse.rdf4j.model.vocabulary.RDF4J;

/**
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
@Deprecated
// FIXME should extend SailException
public class NoShapesLoadedException extends RuntimeException {

private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@

package org.eclipse.rdf4j.sail.shacl;

import org.eclipse.rdf4j.common.iteration.Iterations;
import org.eclipse.rdf4j.model.Resource;
import org.eclipse.rdf4j.model.Statement;
import org.eclipse.rdf4j.model.impl.SimpleValueFactory;
import org.eclipse.rdf4j.model.vocabulary.RDF;
import org.eclipse.rdf4j.model.vocabulary.RDFS;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
Expand All @@ -27,6 +18,22 @@
import java.util.Set;
import java.util.stream.Stream;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
import org.eclipse.rdf4j.common.iteration.Iterations;
import org.eclipse.rdf4j.model.Resource;
import org.eclipse.rdf4j.model.Statement;
import org.eclipse.rdf4j.model.impl.SimpleValueFactory;
import org.eclipse.rdf4j.model.vocabulary.RDF;
import org.eclipse.rdf4j.model.vocabulary.RDFS;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
@Deprecated
@InternalUseOnly
public class RdfsSubClassOfReasoner {

private static final Logger logger = LoggerFactory.getLogger(RdfsSubClassOfReasoner.class);
Expand Down
6 changes: 6 additions & 0 deletions shacl/src/main/java/org/eclipse/rdf4j/sail/shacl/Stats.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@

package org.eclipse.rdf4j.sail.shacl;

import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
import org.eclipse.rdf4j.model.Statement;

/**
* @deprecated since 3.0. This feature is for internal use only: its existence, signature or behavior may change without
* warning from one release to the next.
*/
@InternalUseOnly
public class Stats {

private boolean baseSailEmpty;
Expand Down

0 comments on commit 1ed76a3

Please sign in to comment.