mff-uk / odcs-dpus

Repository for DPUs (Data processing units) for ETL tool for RDF data
3 stars 2 forks source link

[INTLIB] spatne targety anotaci #68

Closed martinnec closed 10 years ago

martinnec commented 10 years ago

Pouze minimum targetu (oa:hasTarget) anotaci (oa:Annotation) ma prirazenou lingvistickou reprezentaci (lingv:hasForm). Konkretne 337 ji ma a 43007 (!) ji nema (divny ne?)

PREFIX skos: http://www.w3.org/2004/02/skos/core# PREFIX frbr: http://purl.org/vocab/frbr/core# PREFIX oa: http://www.w3.org/ns/oa# PREFIX lingv: http://purl.org/lingv/ontology# PREFIX lexc: http://purl.org/lex/ontology/concepts#

SELECT COUNT(?body) WHERE { ?annotation a oa:Annotation ; oa:hasTarget ?target ; oa:hasBody ?body . FILTER NOT EXISTS { ?target lingv:hasForm ?targetForm . } }

tomas-knap commented 10 years ago

Graph http://linked.opendata.cz/resource/dataset/legislation/lingv-lex/2014-05-08 30397

tomas-knap commented 10 years ago

Reason: When it was named entity, we generated URI: http://linked.opendata.cz/resource/legislation/cz/expression/1991/513-1991/version/cz/1991-11-05/named-entity-occurrence/1006

But in relations, when we refer to the same textchunk, we used: http://linked.opendata.cz/resource/legislation/cz/expression/1991/513-1991/version/cz/1991-11-05/named-entity-occurrence/1006

Solution: textchunk pattern is used

tomas-knap commented 10 years ago

Vsechny targety maji lingv reprezentaci, dotaz vraci 0