Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add semantic information to shape trees to discriminate between different resource classes

Aperta
#277 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Ambito
documentation

Direzione di ricerca

Inizia con l’algoritmo validateResource della specifica Shape Trees, il namespace di shape tree e l’issue della specifica e l’esempio di gerarchia collegati. Determina come targetClass debba essere definito e utilizzato per distinguere le classi di risorse; il lavoro è completato quando la specifica descrive coerentemente questo comportamento e gli esempi Task/Project non vengono più validati in modo intercambiabile.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A couple of months ago I bumped into what I think is a malfunction of the validateResource algorithm of the shape tree specification that I described in this issue. Basically, trying to implement a shape tree validator that would execute the algorithm on the resources of the hierarchy described in an example found in the interoperability specification, I discovered that a "Task" resource is validated with a true result against a "Project" shape tree (and viceversa). This is due to the fact that the shape validation would check for constraints on the Project shape and wouldn't find any constraint for the task resource. I think this should not be an intended behavior and users should have the possibility to discriminate between different shape trees when validating a certain resource.

My solution is to add to the shape tree namespace a property similar to this one:

:targetClass  
    a owl:ObjectProperty ;  
    rdfs:domain :ShapeTree ;  
    rdfs:range rdfs:Class ;  
    rdfs:comment "Specifies the class of the managed resource"@en ;  
    rdfs:isDefinedBy <> ;  
    rdfs:label "targetClass"@en .  

And so for example the TaskShapeTree could look like this:

<#TaskTree>
  a st:ShapeTree ;
  st:expectsType st:Resource ;
  st:shape pm-shex:TaskShape ;
  st:targetClass pm:Task .

And the validateResource algorithm could check if the shape tree has a st:targetClass property and, in that case, if the targetClass is the same of the class of the resource.

Lingua principale
Bikeshed
Stelle
58
Fork
18
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di solid/data-interoperability-panel

Tutte le issue di solid/data-interoperability-panel

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.