1,527
edits
(→Token) |
(→Span) |
||
Line 54: | Line 54: | ||
<sparql tryit="1"> | <sparql tryit="1"> | ||
PREFIX mwb: <https://monumenta.wikibase.cloud/entity/> | PREFIX mwb: <https://monumenta.wikibase.cloud/entity/> | ||
PREFIX mdp: <https://monumenta.wikibase.cloud/prop/direct/> | PREFIX mdp: <https://monumenta.wikibase.cloud/prop/direct/> | ||
Line 67: | Line 66: | ||
select | select | ||
?span | ?span | ||
(group_concat(strafter(str(?token),str(mwb:))) as ?span_tokenak) (group_concat(?num_forma) as ? | (group_concat(strafter(str(?token),str(mwb:))) as ?span_tokenak) | ||
?span_label | |||
(group_concat(?num_forma) as ?span_formak) | |||
(iri(concat('https://eu.wikisource.org/wiki/',sample(?wikisource))) as ?wikisource_paragraph) | (iri(concat('https://eu.wikisource.org/wiki/',sample(?wikisource))) as ?wikisource_paragraph) | ||
(iri(concat('http://www.wikidata.org/entity/',?wd_erref)) as ?wd_ent_erref) | (iri(concat('http://www.wikidata.org/entity/',?wd_erref)) as ?wd_ent_erref) | ||
Line 73: | Line 74: | ||
where { | where { | ||
?span mdp:P5 mwb:Q20; | ?span mdp:P5 mwb:Q20; | ||
mp:P174 [mps:P174 ?token; mpq:P32 ?ord] . | mp:P174 [mps:P174 ?token; mpq:P32 ?ord]; | ||
rdfs:label ?span_label. filter(lang(?span_label) = "eu") | |||
?token mdp:P147 ?token_forma . bind (concat(?ord,":",?token_forma) as ?num_forma) | ?token mdp:P147 ?token_forma . bind (concat(?ord,":",?token_forma) as ?num_forma) | ||
?token mdp:P177 ?wikisource . | ?token mdp:P177 ?wikisource . | ||
Line 88: | Line 90: | ||
} group by ?span ?span_tokenak ? | } group by ?span ?span_tokenak ?span_label ?span_formak ?wd_erref ?wd_erref_label ?class_label | ||
</sparql> | </sparql> |