<commit_before>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX rpubl: <http://rinfo.lagrummet.se/ns/2008/11/rinfo/publ#>

CONSTRUCT {

    ?s ?p ?o .
    ?current ?curr_p ?curr_o .

    ?relitem ?relprop ?relobj .

    ?reldoc rpubl:paragraf ?relitem .
    ?relchapter rpubl:paragraf ?relitem .
    ?reldoc rpubl:kapitel ?relchapter .
    ?reldoc a ?reldoctype;
        dct:identifier ?reldoc_label .


    ?revdoc a ?revdoctype;
        dct:identifier ?revdoc_id .

    ?revitem a ?revtype;
        ?rev ?current;
        ?revprop ?revtext .

    ?revdoc rpubl:paragraf ?revitem .
    ?revchapter rpubl:paragraf ?revitem .
    ?revdoc rpubl:kapitel ?revchapter .


    ?inrefitem a rpubl:Forfattningsreferens;
        rpubl:angerGrundforfattning ?current;
        ?refprop ?reftext .

    ?revdoc ?refRev ?inrefitem .
    ?revdoc rpubl:kapitel ?revchapter .
    ?revchapter rpubl:paragraf ?revpara .
    ?revdoc rpubl:paragraf ?revpara .
    ?revpara ?paraRefRev ?inrefitem .

} WHERE {

    {

        ?g foaf:primaryTopic ?current .
        GRAPH ?g { ?s ?p ?o }

    } UNION {

        ?current ?curr_p ?curr_o .

    } UNION {<commit_msg>Add note about how to minimally support owl:sameAs for ?current<commit_after>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl:  <http://www.w3.org/2002/07/owl#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX rpubl: <http://rinfo.lagrummet.se/ns/2008/11/rinfo/publ#>

CONSTRUCT {

    ?s ?p ?o .
    ?current ?curr_p ?curr_o .

    ?relitem ?relprop ?relobj .

    ?reldoc rpubl:paragraf ?relitem .
    ?relchapter rpubl:paragraf ?relitem .
    ?reldoc rpubl:kapitel ?relchapter .
    ?reldoc a ?reldoctype;
        dct:identifier ?reldoc_label .


    ?revdoc a ?revdoctype;
        dct:identifier ?revdoc_id .

    ?revitem a ?revtype;
        ?rev ?current;
        ?revprop ?revtext .

    ?revdoc rpubl:paragraf ?revitem .
    ?revchapter rpubl:paragraf ?revitem .
    ?revdoc rpubl:kapitel ?revchapter .


    ?inrefitem a rpubl:Forfattningsreferens;
        rpubl:angerGrundforfattning ?current;
        ?refprop ?reftext .

    ?revdoc ?refRev ?inrefitem .
    ?revdoc rpubl:kapitel ?revchapter .
    ?revchapter rpubl:paragraf ?revpara .
    ?revdoc rpubl:paragraf ?revpara .
    ?revpara ?paraRefRev ?inrefitem .

} WHERE {

    # NOTE: if support for sameAs of documents is needed, this will work
    # (provided that all occurrences of ?current in the construct above this
    # and the query below this are replaced with ?actual).
    #OPTIONAL { ?actual owl:sameAs ?current }
    #FILTER(BOUND(?actual) || ?actual = ?current)

    {

        ?g foaf:primaryTopic ?current .
        GRAPH ?g { ?s ?p ?o }

    } UNION {

        ?current ?curr_p ?curr_o .

    } UNION {
{'fraction_non_alphanumeric': 0.13261997405966278, 'fraction_numerical': 0.017833981841763942, 'mean_word_length': 2.7484811664641557, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '421802', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1165, 'n_words': 249}