acdh-oeaw / apis-instance-nomansland-dev

apis-instance-nomansland-dev
0 stars 0 forks source link

Migrate to new relations #12

Closed gythaogg closed 1 month ago

gythaogg commented 1 month ago

Probably a bug -

class LocatedIn(Relation, NomanslandRelationMixin, VersionMixin):
    pk_old = [28, 95]  # pk of Property in apis_relations
    subj_model = ["apis_ontology.institution", "apis_ontology.place"]
    obj_model = ["apis_ontology.place"]

    @classmethod
    def reverse_name(cls) -> str:
        return "located in [REVERSE]"

Institution Located in Place appears both in Institution Located in Place AND Location located in place

b1rger commented 1 month ago

Could you try with https://github.com/acdh-oeaw/apis-core-rdf/commit/e9a31116fa6278da038637b89cd6cb1acaa000d5 ?

gythaogg commented 1 month ago

Could you try with acdh-oeaw/apis-core-rdf@e9a3111 ?

Brilliant - it's not a bug anymore!