Did you know ... Search Documentation:
Pack sparqlprog_wikidata -- prolog/sparqlprog_wikidata.pl
PublicShow source

Note: this module uses macros to generate predicates. When this is viewed online using pldoc, the actual predicates will not be visible.

To see the full list of predicates, see pname_wid/3 and cname_wid/3 which declares properties and classes. For each declaration, predicates will be generated. See the README for more details.

 subont(+QueryCls, ?SubClass, ?SuperClass) is nondet
given a query class find all SubClassOf axioms in the sub-ontology defined by any ancestor or decendant of QueryCls
 extract_subontology(+ClassName, +File) is det
given a query ClassName, extract a sub-ontology based around that class using subont/3 and save turtle to File
 enlabel(?Entity, ?Name) is nondet
Name is the English language name of Entity
 enlabelp(?Entity, ?Name) is nondet
Name is the English language name of X where X is a directClaim on Entity
 enlabel_any(?Entity, ?Name) is nondet
either enlabel/2 or enlabelp/2
 en_alt_label(?Entity, ?Name) is nondet
as enlabel/2 but using skos altLabel
 en_description(?Entity, ?Desc) is nondet
Desc is a description of Entity
 entity_search(+SearchTerm, ?Item) is nondet
 entity_search(+SearchTerm, ?Item, +Limit:int) is nondet
named entity search, using the wikibase EntitySearch function
 in_time_interval(+Start, +End, +Time) is semidet
true if Time is an xsd:date between Start and End dates
 population_at(?PopulatedPlace, ?Population, ?Time) is nondet
PopulatedPlace has a population size of Population at Time
 coordinate_location_node(?Entity, ?Node) is nondet
in general you do not need to use this directly
 geolocation(?Entity, ?Lat, ?Long, ?Precision, ?Globe) is nondet
Entity is located at Lat-Long on Globe
 geolocation_around(+Center, +Radius, ?Entity) is nondet
true if Entity is found within Radium miles of Center. use coordinate_location/2 to map between a GeoEntity and its Center

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 property_constraint_pv(Arg1, Arg2, Arg3, Arg4)
 var_drug_condition(Arg1, Arg2, Arg3, Arg4)
 entity_search(Arg1, Arg2, Arg3)
 exact_match(Arg1, Arg2)
 entailed_instance_of_name(Arg1, Arg2)
 instance_of_name(Arg1, Arg2)
 geolocation(Arg1, Arg2, Arg3, Arg4)
 geolocation(Arg1, Arg2, Arg3)
 node_geolocation(Arg1, Arg2, Arg3, Arg4, Arg5)
 node_geolocation(Arg1, Arg2, Arg3, Arg4)
 node_geolocation(Arg1, Arg2, Arg3)