Accord-Project / aec3po

AEC3PO: Architecture, Engineering, Construction Compliance Checking and Permitting Ontology
https://w3id.org/lbd/aec3po/
2 stars 1 forks source link

Inconvenient to tell if item is inline or not #43

Closed beachtom closed 1 year ago

beachtom commented 1 year ago

@EdliraK @AmnaKRDB

In my examples, I have been trying to go from HTML RASE -> Ontology -> HTML RASE. 99% of things works really well - but I have one issue.

It is difficult to tell if am item should be inline or not i.e. given Statement S1 has sub statements S2,S3 and S4. Is it:

S1

  1. S2
  2. S3
  3. S4

Or is it

S1 S2 S3 S4

I've tried it to do it in a few ways:

  1. Only use the linked list method for inline things - but this is really inconvenient as we store the hierarchy in two different ways and ideally I would just like to use hasPart
  2. Have inline items share the same identifier as the parent - this works - but I can rule out that we may want to refer to a individual rule within a sentence individually - and I would rather not introduce that restriction early on.

So my proposal would be one of

A) Introduce a InlineStatement and InlineCheckStatment subclasses as appropriate B) Introduce a new class Inline (or similar) to indicate something is inline C) Add a boolean data property that could indicate if something is inline

Happy to have other suggestions as well!

EdliraK commented 1 year ago

What if we create isInLine/ inLine property as a subproperty of hasPart?

beachtom commented 1 year ago

hasInlinePart - or something like that?