Skip to content

Commit

Permalink
#4769 - Cannot export CAS RDF
Browse files Browse the repository at this point in the history
- Add prefix to URI to make it a valid URI
  • Loading branch information
reckart committed Apr 29, 2024
1 parent 9db2487 commit f41c411
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ private void convertView(JCas aJCas, Model aTarget)
var docuri = dmd.getDocumentUri() != null ? dmd.getDocumentUri()
: DOCUMENT_SCHEME + dmd.getDocumentId();

if (docuri.indexOf(':') < 0) {
docuri = DOCUMENT_SCHEME + docuri;
}

// These only collect a single view...
var reachable = CasDoctorUtils.collectReachable(aJCas.getCas());
var indexed = CasDoctorUtils.collectIndexed(aJCas.getCas());
Expand Down

0 comments on commit f41c411

Please sign in to comment.