@@ -81,8 +81,7 @@ def getAskQuery(self,askExtra="",propertyLookupList=None):
8181 str: the SMW ask query
8282 '''
8383 entityName = self .getEntityName ()
84- isASelector = "IsA::%s" % entityName
85- selector = "Category:Event series" if entityName == "EventSeries" else isASelector
84+ selector = "IsA::%s" % entityName
8685 ask = """{{#ask:[[%s]]%s
8786|mainlabel=pageTitle
8887|?_CDAT=creationDate
@@ -183,9 +182,15 @@ def fromLoD(self,lod):
183182 return errors
184183
185184 def getRatedLod (self ,ratingCallback = None ):
185+ '''
186+ get the list of dicts with a potential rating
187+
188+ Args:
189+ ratingCallback(func): a function to be called for rating of this entity
190+ '''
186191 lod = []
187192 for entity in self .getList ():
188- eventRecord = {}
193+ eventRecord = {'pageTitle' : entity . pageTitle }
189194 for propertyLookup in self .propertyLookupList :
190195 name = propertyLookup ['name' ]
191196 if hasattr (entity ,name ):
@@ -203,11 +208,11 @@ def __init__(self):
203208 self .eventSeries = []
204209 super (EventSeriesList , self ).__init__ ("eventSeries" ,EventSeries )
205210 self .propertyLookupList = [
206- { 'prop' :'Acronym' , 'name' : 'acronym' },
211+ { 'prop' :'EventSeries acronym' , 'name' : 'acronym' },
207212 { 'prop' :'Homepage' , 'name' : 'homepage' },
208213 { 'prop' :'Title' , 'name' : 'title' },
209214 #{ 'prop':'Field', 'name': 'subject'},
210- { 'prop' :'WikiDataId ' , 'name' : 'wikiDataId' },
215+ { 'prop' :'Wikidataid ' , 'name' : 'wikiDataId' },
211216 { 'prop' :'DblpSeries' , 'name' : 'dblpSeries' }
212217 ]
213218
0 commit comments