Skip to content

Formatter adds unneeded prefixes #43

@external-Bogdan-Toma

Description

@external-Bogdan-Toma

Formatting model

@prefix : <http://xmlns.com/foaf/0.1/> .
:Mary a :Gamer ;
   :tournaments ("WorldCup1" "WorldCup2") ;
   :isPlaying true.
  • using style with keepUnusedPrefixes( true ) will result into having following prefixes:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix : <http://xmlns.com/foaf/0.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
  • using style with keepUnusedPrefixes( false ) will result into having following prefixes:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <http://xmlns.com/foaf/0.1/> .

Expected is to have only the prefixes that were defined in the model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrdf-formatterIssue refers to RDF/Turtle formatter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions