Note how the IRI has suddenly changed to the base IRI. This is fixed by f193c9d.
Remarks
While f193c9d has the intended effect, I am not sure whether it is correct in the context of the relative/absolute IRI algorithm. The intentions of the code were rather hard to grasp for me, so I suggest to inspect closely.
Also, the second fix hides the first one with the above example; though other examples can be found.
This pull requests consists of fixes for two related problems.
A hyphen is used as base IRI when using STDIN
Given the same file
no-trailing-slash.rdf
:We get the following result:
Note the incorrect hyphen at the end of the IRI. This is fixed by 06a70d5.
A URI without trailing slash is not considered absolute
Given the file
no-trailing-slash.rdf
:We get the following result:
Note how the IRI has suddenly changed to the base IRI. This is fixed by f193c9d.
Remarks
While f193c9d has the intended effect, I am not sure whether it is correct in the context of the relative/absolute IRI algorithm. The intentions of the code were rather hard to grasp for me, so I suggest to inspect closely.
Also, the second fix hides the first one with the above example; though other examples can be found.