2026-11-17 Who shape the shapes
La Novitade
Section titled “La Novitade”HERITRACE
Section titled “HERITRACE”similarity_properties -> owl:hasKey
schema:ResponsibleAgentShape a sh:NodeShape ; sh:targetClass foaf:Agent ; owl:hasKey ( foaf:name ) , ( foaf:familyName foaf:givenName ) , ( datacite:hasIdentifier ) .A key axiom HasKey( CE ( OPE1 … OPEm ) ( DPE1 … DPEn ) ) states that each (named) instance of the class expression CE is uniquely identified by the object property expressions OPEi and/or the data property experssions DPEj — that is, no two distinct (named) instances of CE can coincide on the values of all object property expressions OPEi and all data property expressions DPEj.
shouldBeDisplayed -> dash:hidden
Quelli di TopQuadrant dicono che dash:hidden ha come dominio una proprietà, ma nello stesso documento poi scrivono
dash:ShapeClass a dash:ShapeClass ; dash:hidden true ; rdfs:comment "A class that is also a node shape. This class can be used as rdf:type instead of the combination of rdfs:Class and sh:NodeShape." ; rdfs:label "Shape class" ; rdfs:subClassOf rdfs:Class ; rdfs:subClassOf sh:NodeShape ;.Ma allora! Ok, allora lo faccio anch’io.
orderedBy -> ht:orderedBy
https://github.com/w3c/data-shapes/issues/1411
@prefix hr: <https://w3id.org/heritrace#> .
schema:JournalArticleShape sh:property [ sh:path pro:isDocumentContextFor ; sh:node schema:AgentRoleShape ; hr:orderedBy oco:hasNext ; ] .sortableBy per il catalogo: rimosso.
Nuove proprietà
sh:descriptionpermette di aggiungere una spiegazione a una determinata proprietàsh:ordermodo nativo in SHACL per determinare l’ordine delle proprietà, ha come valore un intero. Viene renderizzato sempre con le maniglie e il riordino avviene sempre con il drag-and-drop.sh:minInclusive,sh:minEclusive,sh:maxInclusiveesh:maxExclusivevalore minimo (incluso/escluso) e massimo (incluso/ecluso) che può avere un valore. È diverso dash:minCountche indice il numero minimo di valori di una certa proprietà. Questo si riferisce al valore stesso.sh:declare, consh:prefixesh:namespaceper definire i prefissi per i namespace, utilizzabili sia per le shape che per le query nelle shape.sh:lessThanOrEqualssh:nodeKind(sh:IRI,sh:Literal,sh:IRIOrLiteral)
Se si sceglie di fornire a HERITRACE uno shacl come file, HERITRACE sostituisce i blank node con IRI (comprese le liste), genera il primo shapshot per tutte le entità e crea un nuovo file separato in cui tiene le entità skolemizzate. HERITRACE mantiene sincronizzati i due file, preservando i blank node nel file originale, ma cancellando commenti e formattazione a ogni riscrittura. Mantenere due file separati non serve solo a non introdurre IRI nel file fornito dall’utente, anche perché, pur con gli IRI, quel file rimarrebbe SHACL valido e e continuerebbe a funzionare come prima. Serve soprattutto a consentire le modifiche manuali al file conservando la funzionalità di change-tracking: se un utente modifica a mano il file, HERITRACE al riavvio successivo lo confronta con la sua copia skolemizzata, fa il diff e registra i cambiamenti.
Il selettore della lingua rispetta i tag di lingua presente nello SHACL e l’editor permette di specificare la lingua di un campo. Il tag di lingua è opzionale.
sh:property [ sh:path dcterms:title ; sh:name "Title"@en, "Titolo"@it ; sh:description "A name given to the resource."@en, "Un nome dato alla risorsa."@it ;] .Per mostrare i campi per la lingua si usa shui:TextFieldWithLangEditor e shui:TextAreaWithLangEditor. La proprietà deve avere datatype rdf:langString o non avere datatype. xsd:string non ammette il tag di lingua.
if and only if the datatype IRI is
http://www.w3.org/1999/02/22-rdf-syntax-ns#langString, a non-empty language tag as defined by [BCP47]. The language tag MUST be well-formed according to section 2.2.9 of [BCP47].
sh:property [ sh:path dcterms:abstract ; sh:datatype rdf:langString ; sh:uniqueLang true ; shui:editor shui:TextAreaWithLangEditor ;] .sh:uniqueLang rifiuta due valori nelle stessa lingua
SHACL 1.2 SPARQL-Related Features prevede language, che prende la lingua dall’interfaccia.
Per ora supporto solo i codici ISO 639-1 di due lettere, non le varianti regionali.
Quale form scegliere per ogni shape? HERITRACE lo decideva per conto sui. SHACL UI ha definito dei punteggi precisi per ogni tipo di campo a seconda del tipo di valore, scritti in RDF. Ora HERITRACE usa direttamente quelli
Tabella presa dalla documentazione di HERITRACE
| Constraint of the property | Editor | Score |
|---|---|---|
shui:editor |
The declared editor | 40 |
sh:in, or alternatives with sh:hasValue |
shui:EnumSelectEditor: a menu of values, which becomes a sheet with a search field above ten values |
30 |
xsd:gYearMonth or xsd:gYear among the datatypes |
A calendar that also lets users choose between a full date, a month and a year | 15 |
xsd:string |
shui:TextFieldEditor |
10 |
rdf:langString |
shui:TextFieldWithLangEditor |
10 |
xsd:boolean |
shui:BooleanEditor, a switch |
10 |
xsd:date |
shui:DatePickerEditor, a calendar |
10 |
| A numeric datatype | shui:NumberFieldEditor |
10 |
sh:class with sh:nodeKind sh:IRI |
shui:AutoCompleteEditor |
10 |
sh:nodeKind sh:IRI without sh:class |
shui:IRIEditor |
10 |
sh:node |
A link whose resource opens in a dialog of its own | 10 |
| None of the above | shui:TextFieldEditor |
1 |
Domande
Section titled “Domande”- Silvio, Ivan, avete confermato di essere autori dell’articolo? C’è da contattare Sergei?
- https://doi.org/10.1109/ACCESS.2026.3754193 perché hanno caricato la versione precedente alla minor revision? Io sono sicuro di aver caricato quella giusta, ci ho riguardato diecimila volte. Inoltre manca l’ORCID di Sergei, forse non ha confermato di essere l’autore dell’articolo.
