<s> from __future__ import ( absolute_import , division , print_function , <EOL> unicode_literals ) <EOL> __author__ = '<STR_LIT>' <EOL> __email__ = '<STR_LIT>' <EOL> import six <EOL> from prov . identifier import Namespace <EOL> XSD = Namespace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> PROV = Namespace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> XSI = Namespace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> PROV_ENTITY = PROV [ '<STR_LIT>' ] <EOL> PROV_ACTIVITY = PROV [ '<STR_LIT>' ] <EOL> PROV_GENERATION = PROV [ '<STR_LIT>' ] <EOL> PROV_USAGE = PROV [ '<STR_LIT>' ] <EOL> PROV_COMMUNICATION = PROV [ '<STR_LIT>' ] <EOL> PROV_START = PROV [ '<STR_LIT>' ] <EOL> PROV_END = PROV [ '<STR_LIT>' ] <EOL> PROV_INVALIDATION = PROV [ '<STR_LIT>' ] <EOL> PROV_DERIVATION = PROV [ '<STR_LIT>' ] <EOL> PROV_AGENT = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTRIBUTION = PROV [ '<STR_LIT>' ] <EOL> PROV_ASSOCIATION = PROV [ '<STR_LIT>' ] <EOL> PROV_DELEGATION = PROV [ '<STR_LIT>' ] <EOL> PROV_INFLUENCE = PROV [ '<STR_LIT>' ] <EOL> PROV_BUNDLE = PROV [ '<STR_LIT>' ] <EOL> PROV_ALTERNATE = PROV [ '<STR_LIT>' ] <EOL> PROV_SPECIALIZATION = PROV [ '<STR_LIT>' ] <EOL> PROV_MENTION = PROV [ '<STR_LIT>' ] <EOL> PROV_MEMBERSHIP = PROV [ '<STR_LIT>' ] <EOL> PROV_N_MAP = { <EOL> PROV_ENTITY : u'<STR_LIT>' , <EOL> PROV_ACTIVITY : u'<STR_LIT>' , <EOL> PROV_GENERATION : u'<STR_LIT>' , <EOL> PROV_USAGE : u'<STR_LIT>' , <EOL> PROV_COMMUNICATION : u'<STR_LIT>' , <EOL> PROV_START : u'<STR_LIT>' , <EOL> PROV_END : u'<STR_LIT>' , <EOL> PROV_INVALIDATION : u'<STR_LIT>' , <EOL> PROV_DERIVATION : u'<STR_LIT>' , <EOL> PROV_AGENT : u'<STR_LIT>' , <EOL> PROV_ATTRIBUTION : u'<STR_LIT>' , <EOL> PROV_ASSOCIATION : u'<STR_LIT>' , <EOL> PROV_DELEGATION : u'<STR_LIT>' , <EOL> PROV_INFLUENCE : u'<STR_LIT>' , <EOL> PROV_ALTERNATE : u'<STR_LIT>' , <EOL> PROV_SPECIALIZATION : u'<STR_LIT>' , <EOL> PROV_MENTION : u'<STR_LIT>' , <EOL> PROV_MEMBERSHIP : u'<STR_LIT>' , <EOL> PROV_BUNDLE : u'<STR_LIT>' , <EOL> } <EOL> ADDITIONAL_N_MAP = { <EOL> PROV [ '<STR_LIT>' ] : u'<STR_LIT>' , <EOL> PROV [ '<STR_LIT>' ] : u'<STR_LIT>' , <EOL> PROV [ '<STR_LIT>' ] : u'<STR_LIT>' , <EOL> PROV [ '<STR_LIT>' ] : u'<STR_LIT>' , <EOL> PROV [ '<STR_LIT>' ] : u'<STR_LIT>' , <EOL> PROV [ '<STR_LIT>' ] : u'<STR_LIT>' , <EOL> PROV [ '<STR_LIT>' ] : u'<STR_LIT>' , <EOL> PROV [ '<STR_LIT>' ] : u'<STR_LIT>' , <EOL> PROV [ '<STR_LIT>' ] : u'<STR_LIT>' , <EOL> } <EOL> PROV_BASE_CLS = { <EOL> PROV_ENTITY : PROV_ENTITY , <EOL> PROV_ACTIVITY : PROV_ACTIVITY , <EOL> PROV_GENERATION : PROV_GENERATION , <EOL> PROV_USAGE : PROV_USAGE , <EOL> PROV_COMMUNICATION : PROV_COMMUNICATION , <EOL> PROV_START : PROV_START , <EOL> PROV_END : PROV_END , <EOL> PROV_INVALIDATION : PROV_INVALIDATION , <EOL> PROV_DERIVATION : PROV_DERIVATION , <EOL> PROV [ '<STR_LIT>' ] : PROV_DERIVATION , <EOL> PROV [ '<STR_LIT>' ] : PROV_DERIVATION , <EOL> PROV [ '<STR_LIT>' ] : PROV_DERIVATION , <EOL> PROV_AGENT : PROV_AGENT , <EOL> PROV [ '<STR_LIT>' ] : PROV_AGENT , <EOL> PROV [ '<STR_LIT>' ] : PROV_AGENT , <EOL> PROV [ '<STR_LIT>' ] : PROV_AGENT , <EOL> PROV_ATTRIBUTION : PROV_ATTRIBUTION , <EOL> PROV_ASSOCIATION : PROV_ASSOCIATION , <EOL> PROV [ '<STR_LIT>' ] : PROV_ENTITY , <EOL> PROV_DELEGATION : PROV_DELEGATION , <EOL> PROV_INFLUENCE : PROV_INFLUENCE , <EOL> PROV_ALTERNATE : PROV_ALTERNATE , <EOL> PROV_SPECIALIZATION : PROV_SPECIALIZATION , <EOL> PROV_MENTION : PROV_MENTION , <EOL> PROV [ '<STR_LIT>' ] : PROV_ENTITY , <EOL> PROV [ '<STR_LIT>' ] : PROV_ENTITY , <EOL> PROV_MEMBERSHIP : PROV_MEMBERSHIP , <EOL> PROV_BUNDLE : PROV_ENTITY <EOL> } <EOL> PROV_ATTR_ENTITY = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_ACTIVITY = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_TRIGGER = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_INFORMED = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_INFORMANT = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_STARTER = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_ENDER = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_AGENT = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_PLAN = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_DELEGATE = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_RESPONSIBLE = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_GENERATED_ENTITY = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_USED_ENTITY = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_GENERATION = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_USAGE = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_SPECIFIC_ENTITY = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_GENERAL_ENTITY = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_ALTERNATE1 = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_ALTERNATE2 = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_BUNDLE = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_INFLUENCEE = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_INFLUENCER = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_COLLECTION = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_TIME = PROV [ '<STR_LIT:time>' ] <EOL> PROV_ATTR_STARTTIME = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTR_ENDTIME = PROV [ '<STR_LIT>' ] <EOL> PROV_ATTRIBUTE_QNAMES = { <EOL> PROV_ATTR_ENTITY , <EOL> PROV_ATTR_ACTIVITY , <EOL> PROV_ATTR_TRIGGER , <EOL> PROV_ATTR_INFORMED , <EOL> PROV_ATTR_INFORMANT , <EOL> PROV_ATTR_STARTER , <EOL> PROV_ATTR_ENDER , <EOL> PROV_ATTR_AGENT , <EOL> PROV_ATTR_PLAN , <EOL> PROV_ATTR_DELEGATE , <EOL> PROV_ATTR_RESPONSIBLE , <EOL> PROV_ATTR_GENERATED_ENTITY , <EOL> PROV_ATTR_USED_ENTITY , <EOL> PROV_ATTR_GENERATION , <EOL> PROV_ATTR_USAGE , <EOL> PROV_ATTR_SPECIFIC_ENTITY , <EOL> PROV_ATTR_GENERAL_ENTITY , <EOL> PROV_ATTR_ALTERNATE1 , <EOL> PROV_ATTR_ALTERNATE2 , <EOL> PROV_ATTR_BUNDLE , <EOL> PROV_ATTR_INFLUENCEE , <EOL> PROV_ATTR_INFLUENCER , <EOL> PROV_ATTR_COLLECTION <EOL> } <EOL> PROV_ATTRIBUTE_LITERALS = { <EOL> PROV_ATTR_TIME , PROV_ATTR_STARTTIME , PROV_ATTR_ENDTIME <EOL> } <EOL> PROV_ATTRIBUTES = PROV_ATTRIBUTE_QNAMES | PROV_ATTRIBUTE_LITERALS <EOL> PROV_RECORD_ATTRIBUTES = list ( ( attr , six . text_type ( attr ) ) for attr in <EOL> PROV_ATTRIBUTES ) <EOL> PROV_RECORD_IDS_MAP = dict ( <EOL> ( PROV_N_MAP [ rec_type_id ] , rec_type_id ) for rec_type_id in PROV_N_MAP <EOL> ) <EOL> PROV_ID_ATTRIBUTES_MAP = dict ( <EOL> ( prov_id , attribute ) for ( prov_id , attribute ) in PROV_RECORD_ATTRIBUTES <EOL> ) <EOL> PROV_ATTRIBUTES_ID_MAP = dict ( <EOL> ( attribute , prov_id ) for ( prov_id , attribute ) in PROV_RECORD_ATTRIBUTES <EOL> ) <EOL> PROV_TYPE = PROV [ '<STR_LIT:type>' ] <EOL> PROV_LABEL = PROV [ '<STR_LIT:label>' ] <EOL> PROV_VALUE = PROV [ '<STR_LIT:value>' ] <EOL> PROV_LOCATION = PROV [ '<STR_LIT:location>' ] <EOL> PROV_ROLE = PROV [ '<STR_LIT>' ] <EOL> PROV_QUALIFIEDNAME = PROV [ '<STR_LIT>' ] <EOL> XSD_ANYURI = XSD [ '<STR_LIT>' ] <EOL> XSD_QNAME = XSD [ '<STR_LIT>' ] <EOL> XSD_DATETIME = XSD [ '<STR_LIT>' ] <EOL> XSD_TIME = XSD [ '<STR_LIT:time>' ] <EOL> XSD_DATE = XSD [ '<STR_LIT:date>' ] <EOL> XSD_STRING = XSD [ '<STR_LIT:string>' ] <EOL> XSD_BOOLEAN = XSD [ '<STR_LIT>' ] <EOL> XSD_INTEGER = XSD [ '<STR_LIT>' ] <EOL> XSD_LONG = XSD [ '<STR_LIT>' ] <EOL> XSD_INT = XSD [ '<STR_LIT:int>' ] <EOL> XSD_SHORT = XSD [ '<STR_LIT>' ] <EOL> XSD_BYTE = XSD [ '<STR_LIT>' ] <EOL> XSD_NONNEGATIVEINTEGER = XSD [ '<STR_LIT>' ] <EOL> XSD_UNSIGNEDLONG = XSD [ '<STR_LIT>' ] <EOL> XSD_UNSIGNEDINT = XSD [ '<STR_LIT>' ] <EOL> XSD_UNSIGNEDSHORT = XSD [ '<STR_LIT>' ] <EOL> XSD_UNSIGNEDBYTE = XSD [ '<STR_LIT>' ] <EOL> XSD_POSITIVEINTEGER = XSD [ '<STR_LIT>' ] <EOL> XSD_NONPOSITIVEINTEGER = XSD [ '<STR_LIT>' ] <EOL> XSD_NEGATIVEINTEGER = XSD [ '<STR_LIT>' ] <EOL> XSD_FLOAT = XSD [ '<STR_LIT:float>' ] <EOL> XSD_DOUBLE = XSD [ '<STR_LIT>' ] <EOL> XSD_DECIMAL = XSD [ '<STR_LIT>' ] </s>
