HydraCG / Specifications

Specifications created by the Hydra W3C Community Group
Other
138 stars 26 forks source link

hydra:Link should be an ObjectProperty #193

Closed tpluscode closed 5 years ago

tpluscode commented 5 years ago

I notice that hydra:Link is defined as a Property.

I does not make sense that a link triple has a literal object. I think that hydra:Link should be changed so that it's an ObjectProperty.

alien-mcl commented 5 years ago

There are no terms in hydra's RDF representation that are using OWL (excluding the ontology itself). I don't see any benefits from using owl:ObjectProperty. Still, we could add a @type: "@id" to the hydra's context that can be referenced by other - it should work fine for JSON-LD

angelo-v commented 5 years ago

I am with @alien-mcl Let's not introduce OWL if it's not there yet. I do not see us gaining much using this here.

I do not understand where you would put @type: "@id"?

tpluscode commented 5 years ago

Ok, thanks guys. I forgot that those terms are not RDFS.

About "@type": "@id", it will help simplify JSON structure but if the server is using other serialisation format then it does not shield them from pushing literal accidentally where a URI is expected.

FYI, I created hypermedia-app/hydra-validator#8 to add this to the analyser.