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

document location used in ttl #3

Open
xiaofengleo opened this issue Jun 29, 2023 · 0 comments
Open

document location used in ttl #3

xiaofengleo opened this issue Jun 29, 2023 · 0 comments

Comments

@xiaofengleo
Copy link
Collaborator

The triple with local absolute path (see code below) was generated by graph.parse() method without specifying the parameter 'publicID'

graph.parse(data=ld_string, format='json-ld')

publicID: the logical URI to use as the document base. If None specified the document location is used (at least in the case where there is a document location).

<file:///C:/Users/z370170/Projects/TWOC/TWOCdemonstrator/tools/Su_2020_prepare_ISA_metadata/#process/37a3b51a-62cd-4daa-8aa7-248477ac7018> a <http://schema.orgAction/> ;
    ns1:schema.orgagent ""^^<http://schema.orgPerson/.> ;
    ns1:schema.orgname ""^^<http://schema.orgText/.> ;
    ns1:schema.orgnextItem <file:///C:/Users/z370170/Projects/TWOC/TWOCdemonstrator/tools/Su_2020_prepare_ISA_metadata/#process/3410ef87-e818-45c9-8aa1-916eac6a72c3> ;
    ns1:schema.orgusesDevice <file:///C:/Users/z370170/Projects/TWOC/TWOCdemonstrator/tools/Su_2020_prepare_ISA_metadata/#protocol/2d2b1d0e-cc99-4203-bb01-75c8300cb9f9> ;
    ns1:schema.orgvalue [ ],

See https://rdflib.readthedocs.io/en/stable/apidocs/rdflib.html#rdflib.graph.Graph.parse for more detail of the parse() method.

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