knowledgepixels / nanodash

A web client to browse and publish nanopublications.
GNU Affero General Public License v3.0
27 stars 2 forks source link

Allow for grouped statements #36

Closed tkuhn closed 3 years ago

tkuhn commented 3 years ago

Useful for optional statements. And later, once implemented, for repeated statements.

tkuhn commented 3 years ago

This is implemented with 3ad56e4f992f2f4136815d5e4786487d91394be4.

It works like this:

    :st1 rdf:type nt:OptionalStatement , nt:GroupedStatement ;
        nt:hasStatement :st1a , :st1b .
    :st1a rdf:type rdf:Statement ;
        rdf:subject ... ;
        rdf:predicate ... ;
        rdf:object ... ;
        nt:statementOrder ... ;
    :st1b rdf:type rdf:Statement ;
        rdf:subject ... ;
        rdf:predicate ... ;
        rdf:object ... ;
        nt:statementOrder ... ;

:st1a and :st1b are visually grouped together and optional as a group, meaning that either none or both of the statement are asserted in the final nanopublication.