RMLio / yarrrml-parser

A YARRRML parser library and CLI in Javascript
MIT License
41 stars 17 forks source link

Literal termType when p is rdf:type #172

Open dachafra opened 2 years ago

dachafra commented 2 years ago

Issue type: :bug: Bug

Description

If the p is rdf:type, the object term type is rr:termType rr:Literal, but when p is a, then the object is correct (i.e. rr:termType IRI)

Steps

Use a mapping with a po such as [rdf:type, ex:myClass]

pheyvaer commented 2 years ago

Hi @dachafra

Technically speaking this is not a bug. You need to write [rdf:type, ex:myClass~iri]. That being said I think it makes sense to default to ~iri when the predicate is rdf:type!

dachafra commented 2 years ago

Well, if a=rdf:type and the default behavior for a is ~iri I think both should be treated the same right? ;-)