object MyVocabulary extends Vocabulary("http://myvocabulary.com#") {val Computer = uriref("Car")val ConsumptionEvt = uriref("ConsumtionEvt")val consumption = prop("consumption")val timeStamp = prop("timeStamp")}
def buildEvent(subjId : String, prop : Property[Int], obj : Node, ts : TypedLiteral) : Graph = {
RDF.Type -> MyVocabulary.Computer,RDF.ID -> objId,MyVocabulary.ConsumptionEvt -> Branch(consumption -> obj,MyVocabulary.timeStamp -> ts)))}
val pcs = graph /-/ having(RDF.Type ->MyVocabulary.Computer) / RDF.ID / asString.set
overloaded method value / with alternatives:[T](nc: org.scardf.NodeToValueConverter[T])T <and>[T](bc: org.scardf.NodeBagConverter[T])T <and>(predicate: org.scardf.UriRef)org.scardf.NodeBag cannot be applied to (net.croz.scardf.NodeBagConverter[Set[String]])
val pcs = graph /-/ having(RDF.Type ->MyVocabulary.Computer) / RDF.IDfor (id <- pcs) yield id.rend
graph /-/ having(RDF.Type ->MyVocabulary.Computer) / RDF.ID / asString.set
should work as expected.
You should post a complete and minimised version of your code that doesn't work.
Hrvoje
Please put the minimal code which exhibits this behaviour in a single
.scala file that can be executed (main or test). And state your exact
versions of Scardf, Scala and Java.
Hrvoje