You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2015/07/13 17:06:04 UTC

[jira] [Comment Edited] (JENA-988) Open TDB store if exists

    [ https://issues.apache.org/jira/browse/JENA-988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14624754#comment-14624754 ] 

Andy Seaborne edited comment on JENA-988 at 7/13/15 3:05 PM:
-------------------------------------------------------------

It is possible to do this by simply testing for the presence of the directory where the store might be in the usual java way.

There is some private code {{DatasetBuilderStd.isNewDatabaseArea}} that takes a pragmatic approach. It uses {{File.exists}} and tries to look for "tdb.cfg".  But because older versions of TDB did not have a configuration file, full reliable testing is not possible.

Adding such an operation in Jena3 might be possible because data should be reloaded for Jena3 to ensure strict RDF 1.1 compliance.

Please send a pull request or patch.


was (Author: andy.seaborne):
It is possible to do this by simply testing for the presence of the directory where the store might be in the usual java way.

There is some private code {[DatasetBuilderStd.isNewDatabaseArea}} that takes a pragmatic approach. It uses {{File.exists}} and tries to look for "tdb.cfg".  But because older versions of TDb did not have a configuration file, full reliable testing is not possible.


> Open TDB store if exists
> ------------------------
>
>                 Key: JENA-988
>                 URL: https://issues.apache.org/jira/browse/JENA-988
>             Project: Apache Jena
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Eugene Tenkaev
>            Priority: Minor
>
> Need method for opening TDB store if it exists in specified location without automatic creation of new one.
> For example:{code}TDBFactory.openDatasetGraph{code}
> Currently we have only one method: {code}TDBFactory.createDatasetGraph{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)