##############################
# Auto-generated. Do not Edit
##############################
from pylipd.globals.synonyms import SYNONYMS
[docs]
class PaleoProxyGeneral:
synonyms = SYNONYMS["PROXIES"]["PaleoProxyGeneral"]
def __init__(self, id, label):
self.id = id
self.label = label
def __eq__(self, value: object) -> bool:
self.id == value.id
[docs]
def getLabel(self):
return self.label
[docs]
def getId(self):
return self.id
[docs]
def to_data(self, data={}):
data[self.id] ={
"label": [
{
"@datatype": None,
"@type": "literal",
"@value": self.label
}
]
}
return data
[docs]
def to_json(self):
data = self.label
return data
[docs]
@classmethod
def from_synonym(cls, synonym):
if synonym.lower() in PaleoProxyGeneral.synonyms:
synobj = PaleoProxyGeneral.synonyms[synonym.lower()]
return PaleoProxyGeneral(synobj['id'], synobj['label'])
return None
[docs]
class PaleoProxyGeneralConstants:
biogenic = PaleoProxyGeneral("http://linked.earth/ontology/paleo_proxy#biogenic", "biogenic")
cryophysical = PaleoProxyGeneral("http://linked.earth/ontology/paleo_proxy#cryophysical", "cryophysical")
dendrophysical = PaleoProxyGeneral("http://linked.earth/ontology/paleo_proxy#dendrophysical", "dendrophysical")
elemental = PaleoProxyGeneral("http://linked.earth/ontology/paleo_proxy#elemental", "elemental")
faunal_assemblage = PaleoProxyGeneral("http://linked.earth/ontology/paleo_proxy#faunal_assemblage", "faunal assemblage")
floral_assemblage = PaleoProxyGeneral("http://linked.earth/ontology/paleo_proxy#floral_assemblage", "floral assemblage")
isotopic = PaleoProxyGeneral("http://linked.earth/ontology/paleo_proxy#isotopic", "isotopic")
mineral = PaleoProxyGeneral("http://linked.earth/ontology/paleo_proxy#mineral", "mineral")
pyrogenic = PaleoProxyGeneral("http://linked.earth/ontology/paleo_proxy#pyrogenic", "pyrogenic")
sedimentology = PaleoProxyGeneral("http://linked.earth/ontology/paleo_proxy#sedimentology", "sedimentology")