/** * Standalone variant of the parser, should be used only * when connection is not available. */ public BigdataTurtleParser() { super(BigdataValueFactoryImpl.getInstance("")); }
/** * The value factory to be used when creating axioms. * * @throws IllegalStateException * unless the ctor variant was used that specifies the database. */ final protected BigdataValueFactory getValueFactory() { return BigdataValueFactoryImpl.getInstance(namespace); // return db.getValueFactory(); }
/** * The value factory to be used when creating axioms. * * @throws IllegalStateException * unless the ctor variant was used that specifies the database. */ final protected BigdataValueFactory getValueFactory() { return BigdataValueFactoryImpl.getInstance(namespace); // return db.getValueFactory(); }
/** * Creates a new NTriplesParser that will use a {@link ValueFactoryImpl} to * create object for resources, bNodes and literals. */ public BigdataNTriplesParser() { // We are providing Bigdata-specific value factory to support parsing of RDR, // which require BigdataValueFactory instead of default Sesame implementation // See https://jira.blazegraph.com/browse/BLZG-1322 super(BigdataValueFactoryImpl.getInstance("")); }
/** * * @param values * A map from the distinct RDF {@link Value} objects in the QUERY * or UPDATE request to the corresponding {@link BigdataValue} * objects that will be used to process the request. */ public BigdataASTContext(final Map<Value, BigdataValue> values) { this.valueFactory = BigdataValueFactoryImpl.getInstance(""); this.vocab = values; }
/** * Ctor used by {@link AbstractTripleStore#create()}. * * @param database * The database. */ protected BaseVocabulary(final String namespace) { if (namespace == null) throw new IllegalArgumentException(); this.valueFactory = BigdataValueFactoryImpl .getInstance(namespace); }
/** * Imposes the canonicalizing mapping on the non-Serializable * BigdataValueFactory during object de-serialization. */ private void readObject(final java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); final String namespace = in.readUTF(); valueFactory = BigdataValueFactoryImpl.getInstance(namespace); }
public NanoSparqlObjectManager(final RemoteRepository repo, final String namespace) { super(repo.getSparqlEndPoint(), BigdataValueFactoryImpl .getInstance(namespace)); m_repo = repo; }
/** * Test z-order string construction by means of a simple, two dimensional * index with positive integer values, with range adjustment encoded in * the datatype. */ public void testZIndexOrderingPositiveWithRangeAdjustment() { final BigdataValueFactory vf = BigdataValueFactoryImpl.getInstance("test"); // the range in the test we delegate to is 0 .. 7 final GeoSpatialLiteralExtension<BigdataValue> litExt = getSimpleLatLonGSLiteralExtensionWithRange(vf, Long.valueOf(0)); zIndexOrderingPositiveBase(vf, litExt, URI_DATATYPE_LAT_LON_LONG_MIN); }
/** * Test z-order string construction by means of a simple, two dimensional * index with mixed negative and positive integer values, with range * adjustment encoded in the datatype. */ public void testZIndexOrderingMixedWithRangeAdjustment() { final BigdataValueFactory vf = BigdataValueFactoryImpl.getInstance("test"); // the range in the test we delegate to is -2 .. 1 final GeoSpatialLiteralExtension<BigdataValue> litExt = getSimpleLatLonGSLiteralExtensionWithRange(vf, Long.valueOf(-2)); zIndexOrderingMixedBase(vf, litExt, URI_DATATYPE_LAT_LON_LONG_MIN); }
/** * Test z-order string construction by means of a simple, two dimensional * index with positive integer values. */ public void testZIndexOrderingPositive() { final BigdataValueFactory vf = BigdataValueFactoryImpl.getInstance("test"); final GeoSpatialLiteralExtension<BigdataValue> litExt = getSimpleLatLonGSLiteralExtension(vf); zIndexOrderingPositiveBase(vf, litExt, URI_DATATYPE_LAT_LON_LONG); }
/** * Test z-order string construction by means of a simple, two dimensional * index with mixed negative and positive integer values. */ public void testZIndexOrderingMixed() { final BigdataValueFactory vf = BigdataValueFactoryImpl.getInstance("test"); // the range in the test we delegate to is -2 .. 1 final GeoSpatialLiteralExtension<BigdataValue> litExt = getSimpleLatLonGSLiteralExtension(vf); zIndexOrderingMixedBase(vf, litExt, URI_DATATYPE_LAT_LON_LONG); }
@Override protected void setUp() throws Exception { super.setUp(); this.namespace = getName(); this.valueFactory = BigdataValueFactoryImpl.getInstance(namespace); }
/** * Unit test for round-trip of GeoSpatial literals of lat+lon * GeoSpatial literals. */ public void test_encodeDecodeLatLonGeoSpatialLiterals() throws Exception { final BigdataValueFactory vf = BigdataValueFactoryImpl.getInstance("test"); final GeoSpatialLiteralExtension<BigdataValue> ext = getLatLonGSLiteralExtension(vf); encodeDecodeGeoSpatialLiterals( vf, getDummyGeospatialLiteralsLatLon(vf, URI_DATATYPE_LAT_LON_DOUBLE), ext); }
/** * Test z-order string construction by means of a simple, two dimensional * index with mixed negative and positive integer values, with range * adjustment encoded in the datatype. */ public void testZIndexOrderingMixedWithRangeAdjustment() { final BigdataValueFactory vf = BigdataValueFactoryImpl.getInstance("test"); // the range in the test we delegate to is -2 .. 1 final GeoSpatialLiteralExtension<BigdataValue> litExt = getSimpleLatLonGSLiteralExtensionWithRange(vf, Long.valueOf(-2)); zIndexOrderingMixedBase(vf, litExt, URI_DATATYPE_LAT_LON_LONG_MIN); }
/** * Test z-order string construction by means of a simple, two dimensional * index with positive integer values. */ public void testZIndexOrderingPositive() { final BigdataValueFactory vf = BigdataValueFactoryImpl.getInstance("test"); final GeoSpatialLiteralExtension<BigdataValue> litExt = getSimpleLatLonGSLiteralExtension(vf); zIndexOrderingPositiveBase(vf, litExt, URI_DATATYPE_LAT_LON_LONG); }
/** * Test z-order string construction by means of a simple, two dimensional * index with mixed negative and positive integer values. */ public void testZIndexOrderingMixed() { final BigdataValueFactory vf = BigdataValueFactoryImpl.getInstance("test"); // the range in the test we delegate to is -2 .. 1 final GeoSpatialLiteralExtension<BigdataValue> litExt = getSimpleLatLonGSLiteralExtension(vf); zIndexOrderingMixedBase(vf, litExt, URI_DATATYPE_LAT_LON_LONG); }
protected void setUp() throws Exception { super.setUp(); namespace = getName(); f = BigdataValueFactoryImpl.getInstance(namespace); }
/** * Unit test for round-trip of GeoSpatial literals of lat+lon+time * GeoSpatial literals. */ public void test_encodeDecodeLatLonTimeGeoSpatialLiterals() throws Exception { final BigdataValueFactory vf = BigdataValueFactoryImpl.getInstance("test"); final GeoSpatialLiteralExtension<BigdataValue> ext = getLatLonTimeGSLiteralExtension(vf); encodeDecodeGeoSpatialLiterals( vf, getDummyGeospatialLiteralsLatLonTime(vf, URI_DATATYPE_LAT_LON_TIME), ext); }
/** * Unit test for round-trip of GeoSpatial literals of lat+lon * GeoSpatial literals. */ public void test_encodeDecodeLatLonGeoSpatialLiterals() throws Exception { final BigdataValueFactory vf = BigdataValueFactoryImpl.getInstance("test"); final GeoSpatialLiteralExtension<BigdataValue> ext = getLatLonGSLiteralExtension(vf); encodeDecodeGeoSpatialLiterals( vf, getDummyGeospatialLiteralsLatLon(vf, URI_DATATYPE_LAT_LON_DOUBLE), ext); }