Author: reto
Date: Mon Feb 21 18:05:21 2011
New Revision: 1073095
URL: http://svn.apache.org/viewvc?rev=1073095&view=rev
Log:
CLEREZZA-388: tests passing again (and me a bit confused about implicit
conversions)
Modified:
incubator/clerezza/issues/CLEREZZA-388/platform.cris/ (props changed)
incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/main/scala/org/apache/clerezza/rdf/cris/GraphIndexer.scala
Propchange: incubator/clerezza/issues/CLEREZZA-388/platform.cris/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Feb 21 18:05:21 2011
@@ -0,0 +1 @@
+target
Modified:
incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/main/scala/org/apache/clerezza/rdf/cris/GraphIndexer.scala
URL:
http://svn.apache.org/viewvc/incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/main/scala/org/apache/clerezza/rdf/cris/GraphIndexer.scala?rev=1073095&r1=1073094&r2=1073095&view=diff
==============================================================================
---
incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/main/scala/org/apache/clerezza/rdf/cris/GraphIndexer.scala
(original)
+++
incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/main/scala/org/apache/clerezza/rdf/cris/GraphIndexer.scala
Mon Feb 21 18:05:21 2011
@@ -100,7 +100,8 @@ class GraphIndexer(definitions: TripleCo
for (e <- events) {
val triple = e.getTriple
logger.debug("processing addition of type
"+triple.getObject)
- if
(type2IndexedProperties.contains(triple.getObject)) {
+ //not understanding why contains isn't working here (why dynamic
conversion seems to be applied)
+ if
(type2IndexedProperties.containsKey(triple.getObject)) {
scheduleForReindex(triple.getSubject)
}
}
@@ -114,7 +115,7 @@ class GraphIndexer(definitions: TripleCo
val triple = e.getTriple
val resource = triple.getSubject
val types = for (tn <- resource/RDF.`type`)
yield tn! ;
- if (types.exists(t =>
type2IndexedProperties.contains(t))) {
+ if (types.exists(t =>
type2IndexedProperties.containsKey(t))) {
scheduleForReindex(resource)
}
}