"""Master data model for culture."""
# This file is part of pycopancore.
#
# Copyright (C) 2016-2017 by COPAN team at Potsdam Institute for Climate
# Impact Research
#
# URL: <http://www.pik-potsdam.de/copan/software>
# Contact: core@pik-potsdam.de
# License: BSD 2-clause license
from networkx import DiGraph, Graph
from pycopancore.data_model.variable import Variable
from pycopancore.data_model.unit import unity
[docs]
class Culture:
# Social networks between individuals:
acquaintance_network = \
Variable("acquaintance network",
"""Basic undirected social network of acquaintance between
Individuals. Most other social networks will be subgraphs of this.""",
ref="https://en.wikipedia.org/wiki/Interpersonal_relationship#Stages",
scale='nominal',
datatype=Graph)
friendship_network = \
Variable("friendship/intimate/family network",
"""Smaller (and typically slower-changing) undirected network of
actual friendships and other intimate relationships such as close
familiar ties etc. May have a significantly different structure,
e.g. a qualitatively (less heavy-tailed) degree distribution
and a higher transitivity.""",
ref="https://en.wikipedia.org/wiki/Intimate_relationship",
scale='nominal',
datatype=Graph)
# TODO: maybe use "professional_network":
trusted_business_network = \
Variable("trusted business partners/colleagues network",
"""Similar undirected network for the business side of life, may
overlap.
Not meant to include all business contacts such as competitors,
customers etc. which should rather be represented by a network
between firms""",
ref="https://en.wikipedia.org/wiki/Interpersonal_relationship#Types",
scale='nominal',
datatype=Graph)
# Networks between firms and potentially also individuals and social_systems:
supply_chain_network = \
Variable("supply chain network",
"""Directed network of actual (not potential) supplier-customer
relationships through the economic supply chain, including the
final end customer link and potentially initial links from
social systems.""",
ref="https://en.wikipedia.org/wiki/Supply_chain",
scale='nominal',
datatype=DiGraph)
# Networks between firms only:
trusted_competitor_network = \
Variable("trusted competitor network",
"""Undirected network of basic trust relationships between
competiting firms, to be used in cartel formation model components.
Represents the prerequisites of forming a cartel, not the actually
formed cartel structure (which is rather a set of sets of firms).""",
ref="https://en.wikipedia.org/wiki/Cartel",
scale='nominal',
datatype=Graph)
# Networks and coalitions between social_systems only:
trusted_diplomatic_network = \
Variable("trusted diplomatic network",
"""Undirected network of basic trust relationships between
social_systems, to be used in (intersocietal) coalition formation model
components. Represents the prerequisites of forming a coalition,
not the actually formed coalition structure (which is rather a set
of sets of social systems).""",
ref="https://en.wikipedia.org/wiki/Coalition#International_relations",
scale='nominal',
datatype=Graph)
intersocietal_coalition_structure = \
Variable("intersocietal coalition structure",
"""(a set of sets of social systems)""",
scale='nominal',
datatype=set)
# group entity related networks
inter_group_network = \
Variable("inter group network",
"""Basic undirected social network between
Groups.""",
ref="https://en.wikipedia.org/wiki/Social_network#Meso_level",
scale='nominal',
datatype=Graph)
group_membership_network = \
Variable("group membership network",
"""Directed network from individual to group that
signifies membership (to avoid problems due to n to n relation)""",
scale='nominal',
datatype=DiGraph)
# socio-cultural traits that may occur on different levels:
is_environmentally_friendly = \
Variable("is environmentally friendly",
"""whether the entity is environmentally friendly or not""",
scale="ordinal", levels=[False, True], default=False)