
#import (dbpedia_10,"postgres","ps","SELECT * FROM updateConcept", updateConcept).
#import (dbpedia_10,"postgres","ps","SELECT * FROM updateDataRole", updateDataRole).

result(X,Y) :- book(X,Y).
result(X,Y) :- journ(X,Y).

book(X,Y) :- &dlR["dbpedia_kb_10k.rdf",updateConcept,b,updateDataRole,d,"http://dbpedia.org/class/yago/Book106410904"](X,Y).
journ(X,Y) :- &dlR["dbpedia_kb_10k.rdf",a,b,c,d,"http://dbpedia.org/class/yago/Periodical106593296"](X,Y).

