[
https://issues.apache.org/jira/browse/STANBOL-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13169742#comment-13169742
]
Alessandro Adamou commented on STANBOL-421:
-------------------------------------------
As of r121434, the ClerezzaOntologyStorage class has been deprecated and since
replaced with the new OntologyProvider<O> interface.
In OSGi, the implementation is a service component, so a
@Reference
OntologyProvider<?> ontologyProvider;
from within a Component should provide the default implementation (which is
Clerezza-based and wraps a Clerezza TcManager).
If you do not wish to use a Component and would like to obtain the
OntologyProvider from a space or session via a method like
getOntologyProvider(), please ask. Currently, there are no such methods because
ontology collectors such as spaces or sessions are not intended to expose their
internals. But this can change.
Please check the Strings returned by a call to OntologyProvider#getKeys() .
They should have only single quotes, or no quotes at all. Note that getKeys()
returns ONLY the identifiers this ontology provider knows about.
To obtain the UriRef objects of ALL stored graphs, call
OntologyProvider#getStore()#listTripleCollections() - assuming the
OntologyProvider implementation to be the Clerezza one, which by default is so.
> ClerezzaOntologyStorage.listGraphs() double-quotes IRIs
> -------------------------------------------------------
>
> Key: STANBOL-421
> URL: https://issues.apache.org/jira/browse/STANBOL-421
> Project: Stanbol
> Issue Type: Bug
> Components: Ontology Manager
> Reporter: Stephen Bayliss
> Priority: Minor
>
> The listGraphs() method of ClerezzaOntologyStorage returns double-quoted
> IRIs; ie <<some-iri>> rather than <some-iri>.
> This seems to be because the method is using IRI.create(String) on a
> UriRef.toString() - and UriRef.toString() produces a quoted string
> (UriRef.toUnicodeString() does not produce a quoted String).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira