DEFAULT = rdflib.Namespace('http://example.org/')
g.bind('', DEFAULT)

Nick


On 16/7/19, 3:55 am, "[email protected] on behalf of 
[email protected]" <[email protected] on behalf of 
[email protected]> wrote:

    Dear community, 
    
    How can I create default prefix with only colon with rdflib?
    
    For instance, I hope to have:
    
    @prefix : <https://xxx> .
    
    <yyy>
      rdf:type :fff ;
      rdfs:label "example" .
    
    Thanks!
    
    -- 
    http://github.com/RDFLib
    --- 
    You received this message because you are subscribed to the Google Groups 
"rdflib-dev" group.
    To unsubscribe from this group and stop receiving emails from it, send an 
email to [email protected].
    To post to this group, send email to [email protected].
    To view this discussion on the web visit 
https://groups.google.com/d/msgid/rdflib-dev/fc80b5c7-fd22-488b-9396-d5d3727d1f8a%40googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    

-- 
http://github.com/RDFLib
--- 
You received this message because you are subscribed to the Google Groups 
"rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rdflib-dev/TY2PR0101MB31524F2CBDA6E82C9DF7309AA2CE0%40TY2PR0101MB3152.apcprd01.prod.exchangelabs.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to