Example #1
0
def type2name(dbp_type: str) -> str:
    return rdf_util.uri2name(dbp_type, NAMESPACE_DBP_ONTOLOGY)
Example #2
0
def resource2name(resource: str) -> str:
    return rdf_util.uri2name(resource, NAMESPACE_DBP_RESOURCE)
Example #3
0
def listpage2name(lp: str) -> str:
    if is_listpage(lp):
        return rdf_util.uri2name(lp, NAMESPACE_DBP_LIST)
    return rdf_util.uri2name(lp, NAMESPACE_DBP_LISTS)
Example #4
0
def listcategory2name(listcategory: str) -> str:
    return rdf_util.uri2name(listcategory, NAMESPACE_DBP_LISTCAT)
Example #5
0
def category2name(category: str) -> str:
    return rdf_util.uri2name(category, NAMESPACE_DBP_CATEGORY)