accurator/commit
Experiment so dont consider annotations others.
author | Chris Dijkshoorn |
---|---|
Sat Oct 3 20:09:17 2015 +0200 | |
committer | Chris Dijkshoorn |
Sat Oct 3 20:09:17 2015 +0200 | |
commit | 9ecdbac00d16e38751c36bb0c114e4a567c273f4 |
tree | 2c3e2a9e6150bd900b562732038b04251fa6270b |
parent | 30c1818d3201a415f909a1b8bd68d6d8ccb2ddd6 |
Diff style: patch stat
diff --git a/lib/accurator/recommendation/strategy_expertise.pl b/lib/accurator/recommendation/strategy_expertise.pl index d752a08..4c3fc59 100644 --- a/lib/accurator/recommendation/strategy_expertise.pl +++ b/lib/accurator/recommendation/strategy_expertise.pl @@ -187,15 +187,7 @@ edge(O, S, P, W) :- % annotation edge hack: translate the connection between object and % subject through an annotation into a dc:subject predicate. i_edge(O, S, P) :- - rdf(Annotation, oa:hasBody, O), - rdf(Annotation, oa:hasTarget, S), - rdf_equal(P, dc:subject). - - -i_edge(O, S, P) :- - rdf(S, P, O), - % ignore annotations connected by hasTarget - \+ rdf_equal(S, oa:hasTarget). + rdf(S, P, O). i_edge(O, S, P) :- rdf(O, P0, S), atom(S), @@ -203,9 +195,29 @@ i_edge(O, S, P) :- -> true ; predicate_weight(P0, 1) -> P = P0 - ), + ). + +%EXPERIMENT: do not consider annotations +%i_edge(O, S, P) :- +% rdf(Annotation, oa:hasBody, O), +% rdf(Annotation, oa:hasTarget, S), +% rdf_equal(P, dc:subject). + + +%i_edge(O, S, P) :- +% rdf(S, P, O), + % ignore annotations connected by hasTarget +% \+ rdf_equal(S, oa:hasTarget). +%i_edge(O, S, P) :- +% rdf(O, P0, S), +% atom(S), +% ( owl_ultra_lite:inverse_predicate(P0, P) +% -> true +% ; predicate_weight(P0, 1) +% -> P = P0 +% ), % ignore annotations connected by hasTarget - \+ rdf_equal(S, oa:hasTarget). +% \+ rdf_equal(S, oa:hasTarget). %% predicate_weight(+Predicate, -Weight) is semidet. %