Skip to content

Conversation

@aMahanna
Copy link
Member

@aMahanna aMahanna commented Jul 9, 2025

Introduces a new parameter to the ArangoRDF constructor:

:param rdf_attribute_prefix: The prefix for RDF attributes (e.g., _uri, _value,
        _rdftype, etc.). Defaults to the original "_" symbol, but please NOTE
        that using an underscore "_", results in these attributes being treated
        as ArangoDB system attributes. Using "$" is an alternative non-system prefix.
    :type rdf_attribute_prefix: str
from arango_rdf import ArangoRDF

adbrdf = ArangoRDF(..., rdf_attribute_prefix="$")

adbrdf.rdf_to_arangodb_by_pgt(....)

# $uri, $label, $rdftype properties now stored in ArangoDB Documents instead of _uri, _label, _rdftype

Useful for replacing the _ underscore prefix to avoid complications around using system attributes (e.g arangodump masking)

@coveralls
Copy link

coveralls commented Jul 9, 2025

Pull Request Test Coverage Report for Build 16196605571

Details

  • 30 of 30 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 94.956%

Totals Coverage Status
Change from base Build 16176477693: 0.1%
Covered Lines: 1073
Relevant Lines: 1130

💛 - Coveralls

@aMahanna aMahanna merged commit 6e5efbb into main Jul 10, 2025
6 checks passed
@aMahanna aMahanna deleted the rdf_attribute_prefix branch July 10, 2025 13:40
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

Successfully merging this pull request may close these issues.

3 participants