neha gupta
2016-11-16 13:53:58 UTC
Hello
I have a data property in my owl file: "FavoriteStadium" for a team.
Triples will be like team1 FavoriteStadium ?stadium.
I will infer the instances using a Jena rule like if a team win % is more
in a particular stadium, it will be her favorite stadium.
I have two questions here:
1) How can I get the instances like team1 FavoriteStadium ?stadium.
Is it the right approach? * inf.listResourcesWithProperty(FavoriteStadium,
favVariable);*
2) *How can I then save it as data property in a file for team1*? I have
other properties like this:
team1 Wins 10
team1 Goals 150
team1 income 70%
Similarly I want to add it like
team1 FavoriteStadium ?SomeStadium
Thanks
I have a data property in my owl file: "FavoriteStadium" for a team.
Triples will be like team1 FavoriteStadium ?stadium.
I will infer the instances using a Jena rule like if a team win % is more
in a particular stadium, it will be her favorite stadium.
I have two questions here:
1) How can I get the instances like team1 FavoriteStadium ?stadium.
Is it the right approach? * inf.listResourcesWithProperty(FavoriteStadium,
favVariable);*
2) *How can I then save it as data property in a file for team1*? I have
other properties like this:
team1 Wins 10
team1 Goals 150
team1 income 70%
Similarly I want to add it like
team1 FavoriteStadium ?SomeStadium
Thanks