[
https://issues.apache.org/jira/browse/CLEREZZA-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007632#comment-13007632
]
Daniel Spicar commented on CLEREZZA-388:
----------------------------------------
I played around with CRIS and had a few issues:
when adding a large number of triples to the graph that the GraphIndexer
listens to I get a stackoverflow. I added ca. 123 000 triples and got this
exception:
org.apache.clerezza.rdf.cris.GraphIndexer$$anon$2@1b6b4740: caught
java.lang.StackOverflowError
java.lang.StackOverflowError
at scala.actors.Reactor$class.drainSendBuffer(Reactor.scala:155)
at
org.apache.clerezza.rdf.cris.GraphIndexer$$anon$2.drainSendBuffer(GraphIndexer.scala:197)
at scala.actors.Actor$class.receiveWithin(Actor.scala:535)
at
org.apache.clerezza.rdf.cris.GraphIndexer$$anon$2.receiveWithin(GraphIndexer.scala:197)
at
org.apache.clerezza.rdf.cris.GraphIndexer$$anon$2.receiveSubsequentResources(GraphIndexer.scala:216)
at
org.apache.clerezza.rdf.cris.GraphIndexer$$anon$2$$anonfun$receiveSubsequentResources$1.apply(GraphIndexer.scala:219)
at
org.apache.clerezza.rdf.cris.GraphIndexer$$anon$2$$anonfun$receiveSubsequentResources$1.apply(GraphIndexer.scala:216)
at scala.actors.Actor$class.receiveWithin(Actor.scala:596)
...
another issue:
I can't use the findResources method that takes a list (?) of Conditions as
input. I implemented my own Condition in Java and tried to use it and the code
would not compile. When I changed the signature to take only a single Condition
it worked.
example-> ResourceFinder.scala:
def findResources(conditions: Condition*): List[Resource] <--- OLD: doesn't
work in java.
def findResources(conditions: Condition): List[Resource] <--- NEW: this one
works in java, but takes only a single condition.
The question is can I pass the arguments for the first version somehow from
Java? I tried Arrays, Lists, Objects... didn't work.
And a few wishes:
-could we make the length of the result list configurable?
-can searches be done both case-sensitive and case-insensitive somehow?
P.S: I know this issue is not yet finished. But we are in a hurry to use such a
service to I checked out how it works and what can be done with it in the
current state.
> Composite Resource Index Service
> --------------------------------
>
> Key: CLEREZZA-388
> URL: https://issues.apache.org/jira/browse/CLEREZZA-388
> Project: Clerezza
> Issue Type: New Feature
> Reporter: Reto Bachmann-Gmür
> Assignee: Reto Bachmann-Gmür
>
> A service shall monitor a graph for resource of a specific typed and provide
> composite indexes on specified properties. It shall support searching by
> exact value, by range as well as full-text search. This service shall make it
> possible to provide fast faceted searches.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira