Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't split a URI that ends in a Forward Slash? #10

Open
markpbaggett opened this issue Jul 1, 2020 · 0 comments
Open

Can't split a URI that ends in a Forward Slash? #10

markpbaggett opened this issue Jul 1, 2020 · 0 comments

Comments

@markpbaggett
Copy link

I have some partial turtle that looks like this:

@prefix fedoraObject: <http://[LocalFedoraRepository]/> .
@prefix utkevents: <http://[address-to-triplestore]/events/> .
@prefix utktitles: <http://[address-to-triplestore]/titles/> .
@prefix utksubjects: <http://[address-to-triplestore]/subjects/> .
@prefix utkspatial: <http://[address-to-triplestore]/spatial/> .
@prefix utknotes: <http://[address-to-triplestore]/notes/> .
@prefix utknames: <http://[address-to-triplestore]/names/> .
@prefix utkphysicalcollections: <http://[address-to-triplestore]/physicalcollections/> .
@prefix rdfs: <https://www.w3.org/TR/rdf-schema/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix bf: <http://id.loc.gov/ontologies/bibframe/> .
@prefix relators: <http://id.loc.gov/vocabulary/relators> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix geojson: <https://purl.org/geojson/vocab#> .
@prefix pcdm: <http://pcdm.org/models#> .
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix dce: <http://purl.org/dc/elements/1.1/> .
@prefix identifiers: <http://id.loc.gov/vocabulary/identifiers> .
@prefix edm: <http://www.europeana.eu/schemas/edm/> .
@prefix rdau: <http://rdaregistry.info/Elements/u/#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcmitype: <http://purl.org/dc/dcmitype/> .
@prefix owl: <https://www.w3.org/2002/07/owl#> .

<fedoraObject:tq/57/nr/06/tq57nr067>
    dce:title utktitles:1 ;
    identifiers:local "0012_000463_000214", "record_spc_4489", "Slide 1", "Film 96" ;
    dcterms:identifier "knoxgardens:115" ;
    dcterms:abstract "Photograph slide of the Tennessee state tree, the tulip tree" ;
    bf:provisionActivity utkevents:1, utkevents:2, utkevents:3 ;
    edm:hastype <http://vocab.getty.edu/aat/300134977> ;
    rdau:extent "3 1/4 x 5 inches" ;
    dce:format "image/jp2" ;
    relators:pht utknames:1 ;
    dcterms:subject utksubjects:1, utksubjects:2, utksubjects:3, utksubjects:4 ;
    dcterms:spatial utkspatial:1 ;
    bf:Note utknotes:1 ;
    pcdm:memberOf <fedoraObject:jk/88/99/adklasd908ads> ;
    relators:rps <http://id.loc.gov/authorities/names/no2014027633> ;
    bf:physicalLocation "University of Tennessee, Knoxville. Special Collections" ;
    edm:rights <http://rightsstatements.org/vocab/CNE/1.0/> .

When I try to create my dot file from this

$ ./ontology_viz.py -o tulip.dot ~/PycharmProjects/utk_hyrax_investigation/docs/test.ttlC 

it fails with ValueError: Can't split 'http://rightsstatements.org/vocab/CNE/1.0/'.

If I remove the trailing slash in the URI, the dot file is created just fine. As you can see in here, it says the URI should be http://rightsstatements.org/vocab/CNE/1.0/. Am I misunderstanding the error here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant