def createTopicPage1():
    """
    create a topic page directly
    """
    topic = TopicPage(er)
    topic.addKeyword("renewable energy", 30)
    topic.addConcept(er.getConceptUri("biofuel"), 50)
    topic.addConcept(er.getConceptUri("solar energy"), 50)
    topic.addCategory(er.getCategoryUri("renewable"), 50)

    # skip articles that are duplicates of other articles
    topic.articleHasDuplicateFilter("skipHasDuplicates")
    # return only articles that are about some event that we have detected
    topic.articleHasEventFilter("skipArticlesWithoutEvent")

    # get first 2 pages of articles sorted by relevance to the topic page
    arts1 = topic.getArticles(page=1, sortBy="rel")
    arts2 = topic.getArticles(page=2, sortBy="rel")

    # get first page of events
    events1 = topic.getEvents(page=1)
create a topic page directly