Skip to content

Transformation of trustyuris in sub-names yields unexpected result #6

@fkleedorfer

Description

@fkleedorfer

Transforming the follwoing content:

@prefix ex:<http://example.com/> .
@prefix sub:<http://example.com/myresource#> .

sub:graph1{
    ex:myresource a ex:TrustyUri .
    sub:graph1 ex:contains sub:part1 .
}

sub:graph2{
    sub:graph2 ex:contains sub:part2 .
}

in a file myresource.trig
using

 scripts/TransformRdf.sh myresource.trig http://example.com/myresource

yields

@prefix this: <http://example.com/myresource.RAg3eYqbagUqCN8-PgKHO9fGbp8aY65dMFiZIY_D4MYdc> .
@prefix sub: <http://example.com/myresource.RAg3eYqbagUqCN8-PgKHO9fGbp8aY65dMFiZIY_D4MYdc#> .
@prefix ex: <http://example.com/> .
@prefix sub1: <http://example.com/myresource#> .

sub:%23graph1 {
  ex:myresource.RAg3eYqbagUqCN8-PgKHO9fGbp8aY65dMFiZIY_D4MYdc a ex:TrustyUri .
  
  sub:%23graph1 ex:contains sub:%23part1 .
}

sub:%23graph2 {
  sub:%23graph2 ex:contains sub:%23part2 .
}

I'd expect the graph names and objects to be sub:graph[12] and sub:part[12]. The result is not incorrect, just not nicely readable and probably not what is intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions