here is part of my ontology
- ( Stevie_Wonder - hasMusicalRole - wordnet_synthesist_110687231 )
- ( Stevie_Wonder - hasMusicalRole - wordnet_bass_guitar_102804123 )
- ( Stevie_Wonder - hasMusicalRole - wordnet_piano_103928116 )
Can I use something like
(?x :hasMusicalRole ?y)
and get a count like 3 , then produce a new fact like
( Stevie_Wonder - can - playMutipleInstrument )
while we know he can play 3 kind of instrument.
Or is there any way to use Sparql in rules?
like
[ rule:
SELECT count(?y) WHERE { ?s yago:hasMusicalRole ?y . }
->
( Stevie_Wonder - can - playMutipleInstrument )
]