def __init__(self, user, repo):
        """
        Default constructor
        """
        self.user = user
        self.repo = repo
        self.prov_g = Graph()
        prov_uri = URIRef("http://www.w3.org/ns/prov#")
        self.prov = Namespace(prov_uri)
        self.prov_g.bind('prov', self.prov)

        self.agent = URIRef("http://{}".format(static.SERVER_NAME))
        self.entity_d = URIRef("http://{}/api/{}/{}/spec".format(static.SERVER_NAME, self.user, self.repo))
        self.activity = URIRef(self.entity_d + "-activity")

        self.init_prov_graph()
def __init__ ( self , user , repo ) : self . user = user self . repo = repo self . prov_g = Graph ( ) prov_uri = URIRef ( "http://www.w3.org/ns/prov#" ) self . prov = Namespace ( prov_uri ) self . prov_g . bind ( 'prov' , self . prov ) self . agent = URIRef ( "http://{}" . format ( static . SERVER_NAME ) ) self . entity_d = URIRef ( "http://{}/api/{}/{}/spec" . format ( static . SERVER_NAME , self . user , self . repo ) ) self . activity = URIRef ( self . entity_d + "-activity" ) self . init_prov_graph ( )
Default constructor