Feature "Specify how to set an entity's "HasEntityType""

From Dataspects
C2081521920
Jump to: navigation, search
[edit]
EntityType "Feature"
Keywords/Contexts

EPPO

Annotations

See below…





  • Set a final fallback value if all processEPPOFieldDirectives return "" (LEX2009301543)
eppo:
    mappings:
        HasEntityType:
            defaultString: MediaWikiPage
            directives:
                1:
                    fromAnnotation:
                        2:
                            havingPredicate: HasEntityType
                        1:
                            havingPredicate: IsInNamespace
                            ifObjectValueIsOneOf: [ Property, Template ]
                        3:
                            boolAND:
                                ifAnnotationPredicateValueOneOf: [ HasCategory ]
                                ifAnnotationObjectValueOneOf: [ EntityType ]
                                setTo:
                                    string: EntityType
                        4:
                            setToString: Topic