RM: OSLC fetch all properties ref IDs for a given artifact type
Within a project area, I can see a creationFactory with an associated list of resourceShapes that are types /rm/types/$id. These types appear to be all the artifact types. Each one of those /rm/types/id when fetched produces a list of oslc:property. The name and valueType are recognized as attributes appearing in my artifacts, including the custom attributes I set up in a new artifact type; OK.
Problem: There's no indication of the name of the artifact type; thus, I cannot narrow the set of attributes that are relevant to a particular NAMED artifact (as opposed to using the ID).
So... can anyone articulate how to get fetch the oslc:property tuples (i.e. all the attribute defs) for a SINGLE NAMED artifact type in RM?
Problem: There's no indication of the name of the artifact type; thus, I cannot narrow the set of attributes that are relevant to a particular NAMED artifact (as opposed to using the ID).
So... can anyone articulate how to get fetch the oslc:property tuples (i.e. all the attribute defs) for a SINGLE NAMED artifact type in RM?
One answer
Are you looking for a way to identify which named artifact type does the resource shape belong to, on a resource shape URI?
I don't see a way to do that directly without doing a get on the resource shape URI. But the result of GET on resource shape URI does have a tuple that would allow you to identify which named artifact type's properties they are, along with the bunch of oslc:properties it gets:
<dc:title rdf:parseType="Literal">Feature</dc:title>