Journal 2025-03-10

#:transmissions pipeliney thing, near-future aim is to get it to render this. A small test site has its markdown at ~/sites/strandz.it/postcraft

I run :

./trans md-to-sparqlstore -v ~/sites/strandz.it/postcraft
./trans sparqlstore-to-html -v ~/sites/strandz.it/postcraft

The second line, after rendering the posts to file, should also add a schema:datePublished statement.

This is the test query I've been using on http://localhost:4030/test-mem/query -

PREFIX schema: <http://schema.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX : <http://purl.org/stuff/transmissions/>

SELECT DISTINCT * WHERE {

  ?article a schema:Article ;
    :sourcePath ?sourcePath ;
    :relPath ?relPath ;
    :slug ?slug ;
    schema:headline ?title ;
    schema:dateModified ?modified ;
    schema:articleBody ?content ;
    schema:creator ?creator .

  ?creator a schema:Person ;
    schema:name ?creatorName .

OPTIONAL {
    ?article schema:datePublished ?published ;
}
}
ORDER BY DESC(?published)

Time to devolve to :

select distinct ?p where {
    ?article a schema:Article;
               ?p ?o
}
1
<http://purl.org/stuff/transmissions/relPath>
2
schema:articleBody
3
schema:dateCreated
4
schema:headline
5
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
6
<http://purl.org/stuff/transmissions/sourcePath>
7
<http://purl.org/stuff/transmissions/slug>
8
schema:dateModified
9
<http://purl.org/stuff/transmissions/hasRepresentation>
10
schema:creator

Ok, where is schema:datePublished?

Ew,I want extra debugging in src/processors/sparql/SPARQLUpdate.js but want to get this thing working end-to-end before anything else. This is so ugly, search & replace logger.trace in there with logger.debug so the -v will trigger the 101 print statements...

PREFIX schema: <http://schema.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX : <http://purl.org/stuff/transmissions/>

# must be a neater way
INSERT DATA { <{{uri}}> schema:datePublished "dummy date" } ;

DELETE { <{{uri}}> schema:datePublished ?published }
INSERT { <{{uri}}> schema:datePublished "{{published}}" }
WHERE  { <{{uri}}> schema:datePublished ?published }

Journal 2025-03-10