MCPcopy Index your code
hub / github.com/clips/pattern / name

Method name

pattern/web/__init__.py:2086–2093  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2084class DBPediaResource(unicode):
2085 @property
2086 def name(self):
2087 # http://dbpedia.org/resource/Australia => Australia
2088 s = re.sub("^http://dbpedia.org/resource/", "", self)
2089 s = s.replace("_", " ")
2090 s = encode_utf8(s)
2091 s = decode_url(s)
2092 s = decode_utf8(s)
2093 return s
2094
2095class DBPedia(SearchEngine):
2096

Callers

nothing calls this directly

Calls 3

encode_utf8Function · 0.85
decode_urlFunction · 0.85
decode_utf8Function · 0.85

Tested by

no test coverage detected