|Did you know ...||Search Documentation:|
|Pack sparqlprog -- prolog/sparqlprog/ontologies/dbpedia/dbpedia_matcher.pl|
This module is intended primarily as an example of how to mix local logic and remote sparql logic.
true if SharedMember is a member of both B1 and B2 (and B1 and B2 are distinct)
true if SharedGenre is a genre of both B1 and B2 (and B1 and B2 are distinct)
the entities should be of similar types (e.g. two bands, or two books)
| genres(A) /\ genres(B) | / | genres(A) \/ genres(B) |
if no genres are in common, then this should equal 0 if all genres are in common, then this should equal 1
note this does not take into account how meaningful it is for a genre to be shared; e.g. sharing the common genre 'pop' counts as much as a rarer genre like 'psytrance'. see further on for IC-based metrics.
pair_genre_ic(dbr:'Metallica', dbr:'Megadeth', IC)=
The following predicates are exported, but not or incorrectly documented.