oslc-op / sysml-oslc-server

Sample code to demonstrate how to use Lyo Designer to create an OSLC server for the SysML v2 REST API.
Apache License 2.0
10 stars 2 forks source link

adding rdf:type on all superclasses of each element, to allow the instances to be found upon a query. #28

Closed jadelkhoury closed 2 years ago

jadelkhoury commented 2 years ago

@berezovskyi ! I tried to understand how/if JMH can better deal with a hierachy of classes. I think JMH does a good job, but the Store functionality is too simple.

Senario: the store contains many instances of class B; where type B is a subclass of A.

When one queries all instances of type A, LyoStore does not find any, since the instances of B don't have the expected rdf:type it is looking for.

Can you tink of a better way to do this?

berezovskyi commented 2 years ago

RDFS?

Edit: I don't think we should be trying to implement a hacky RDFS over SPARQL (i.e. many OPTIONAL clauses for RDF types of the statically inferred hierarchy). If RDFS support is turned on, ?s a :A will return subject of both resource types.