Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Pierre-Antoine Champin

    Hi, you might be interested in a small tool I just started hacking. It allows you to explore an RDF store in your filesystem, using FUSE.


    For the moment, it is read-only, but my plan is to support mutations as well (through creating, modifying and deleting files).

    Benjamin Riesenberg
    Hi all:
    Question from a relative newcomer to Python, and rdflib.
    I'm planning to write a XSLT script to convert RDF/XML data into an HTML document.
    As part of this workflow I'm planning on using Python + rdflib to retrieve some triples and serialize as RDF/XML. This will be run on a regular basis going forward, so I thought I should ask:
    Is the output from rdflib's RDF/XML serializer stable?
    That is to say, can it be reasonably expected to stay mostly the same going forward? Or is this functionality still under development and likely to change?
    Thank you!
    Carlos Vega
    Hello, I have an issue with blank nodes that I've posted on Stack Overflow

    is there any way to avoid the creation of that extra rdf:description tag and provide parseType="Resource" to dcterms:modified?

    import rdflib
    from rdflib.namespace import Namespace, DCTERMS, RDF, XSD
    from datetime import datetime
    graph = rdflib.Graph()
    graph.bind('dcterms', DCTERMS)
    graph.bind('xsd', XSD)
    description = rdflib.URIRef(f'#TNFalpha_944')
    w3cdtf_node = rdflib.BNode()
    date = rdflib.Literal(datetime.now(), datatype=XSD.dateTime)
    graph.add((description, DCTERMS.modified, w3cdtf_node))
    graph.add((w3cdtf_node, DCTERMS.W3CDTF, date))
    ann = graph.serialize(format="pretty-xml").decode('utf-8')

    this is the code I used to generate that output.

    Carlos Vega