You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by re...@apache.org on 2011/03/06 21:18:18 UTC
svn commit: r1078560 - in
/incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src:
main/scala/org/apache/clerezza/rdf/cris/VirtualProperty.scala
test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala
Author: reto
Date: Sun Mar 6 20:18:18 2011
New Revision: 1078560
URL: http://svn.apache.org/viewvc?rev=1078560&view=rev
Log:
CLEREZZA-388: added comment
Modified:
incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/main/scala/org/apache/clerezza/rdf/cris/VirtualProperty.scala
incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala
Modified: incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/main/scala/org/apache/clerezza/rdf/cris/VirtualProperty.scala
URL: http://svn.apache.org/viewvc/incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/main/scala/org/apache/clerezza/rdf/cris/VirtualProperty.scala?rev=1078560&r1=1078559&r2=1078560&view=diff
==============================================================================
--- incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/main/scala/org/apache/clerezza/rdf/cris/VirtualProperty.scala (original)
+++ incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/main/scala/org/apache/clerezza/rdf/cris/VirtualProperty.scala Sun Mar 6 20:18:18 2011
@@ -24,6 +24,12 @@ import org.apache.clerezza.rdf.scala.uti
import org.wymiwyg.commons.util.Util
import org.apache.clerezza.rdf.scala.utils.Preamble._
+/**
+ * A VirtualProperty is a function that returns a string given a Resource. This might be either
+ * a direct mapping to an RDF property (PropertyHolder) a sequence of RDF properties describing
+ * the Path to the value (PathVirtualProperty) or a list of other virtual properties of which
+ * the values are concatenated.
+ */
abstract class VirtualProperty {
/**
* As opposed to toString this doesn't need to be human readable but unique (as with
Modified: incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala
URL: http://svn.apache.org/viewvc/incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala?rev=1078560&r1=1078559&r2=1078560&view=diff
==============================================================================
--- incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala (original)
+++ incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala Sun Mar 6 20:18:18 2011
@@ -241,7 +241,7 @@ class GraphIndexerTest {
}
@Test
- def partProperty {
+ def pathVirtualProperty {
import VirtualProperties._
val pathProperty = PathVirtualProperty(List(ownsPetProperty, FOAF.name))
val indexDefinitionManager = new IndexDefinitionManager {