rybesh opened a new issue, #1720:
URL: https://github.com/apache/jena/issues/1720

   ### Version
   
   4.7.0
   
   ### Feature
   
   Currently, riot RDFS inference outputs “generalized” RDF which may not be 
parsable by other tools (including various Jena CLI tools). For example:
   
   `data.ttl`
   
   ```ttl
   PREFIX ex: <http://example.org/>
   PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
   
   ex:louie ex:birthdate "2022-08-11”^^xsd:date .
   ```
   
   `vocab.ttl`
   
   ```ttl
   PREFIX ex: <http://example.org/>
   PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
   PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
   
   ex:birthdate rdfs:range xsd:date .
   ```
   
   Output of `riot --rdfs=vocab.ttl data.ttl`
   
   ```ttl
   PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
   PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
   
   "2022-08-11”^^xsd:date rdf:type xsd:date .
   ```
   
   … which is generalized RDF due to the literal in the subject position.
   
   It would be nice if there were a flag to filter out such triples (using 
[SafeGraph](https://github.com/apache/jena/blob/main/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/SafeGraph.java)),
 so as to avoid errors when subsequently processing the output with tools that 
don't accept generalized RDF.
   
   I’m interested in contributing a solution, but would need some pointers as 
to where in the codebase this should go.
   
   ### Are you interested in contributing a solution yourself?
   
   Perhaps?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to