Coverage for apis_core/apis_entities/rdfconfigs/group.py: 100%
18 statements
« prev ^ index » next coverage.py v7.5.3, created at 2026-02-19 10:33 +0000
« prev ^ index » next coverage.py v7.5.3, created at 2026-02-19 10:33 +0000
1from apis_core.utils.rdf import Attribute, Filter
4class E74_GroupFromDNB:
5 filter_type_1 = Filter([("rdf:type", "gndo:CorporateBody")])
6 filter_type_2 = Filter([("rdf:type", "gndo:Company")])
7 filter_type_3 = Filter([("rdf:type", "gndo:FictiveCorporateBody")])
8 filter_type_4 = Filter([("rdf:type", "gndo:MusicalCorporateBody")])
9 filter_type_5 = Filter([("rdf:type", "gndo:OrganOfCorporateBody")])
10 filter_type_6 = Filter([("rdf:type", "gndo:ProjectOrProgram")])
11 filter_type_7 = Filter([("rdf:type", "gndo:ReligiousAdministrativeUnit")])
12 filter_type_8 = Filter([("rdf:type", "gndo:ReligiousCorporateBody")])
14 label = Attribute(
15 [
16 "gndo:preferredNameForTheCorporateBody",
17 "gndo:variantNameForTheCorporateBody",
18 ]
19 )
20 start_date = Attribute("gndo:dateOfEstablishment")
21 end_date = Attribute("gndo:dateOfTermination")
22 sameas = Attribute("owl:sameAs")
25class E74_GroupFromWikidata:
26 filter_p31_is_q414147 = Filter([("wdt:P31", "wd:Q414147")])
28 label = Attribute(["schema:about/rdfs:label", "rdfs:label"])
29 same_as = Attribute(
30 ["owl:sameAs", "wdtn:P227", "wdtn:P1566", "wdtn:P214", "wdtn:P244"]
31 )