Skip to main content

Crate legalis_lod

Crate legalis_lod 

Source
Expand description

Legalis-LOD: Linked Open Data (RDF/TTL) export for Legalis-RS.

This crate provides comprehensive RDF export and Linked Data functionality for legal statutes.

§RDF Formats Supported

  • Turtle (TTL) - Human-readable RDF format
  • N-Triples (NT) - Line-based RDF format
  • RDF/XML - XML serialization of RDF
  • JSON-LD - JSON-based RDF format
  • TriG - Named graph format

§Ontologies and Vocabularies

  • ELI (European Legislation Identifier)
  • FaBiO (FRBR-aligned Bibliographic Ontology)
  • LKIF-Core (Legal Knowledge Interchange Format)
  • LegalRuleML (OASIS standard for legal rules)
  • Akoma Ntoso (Legal document markup)
  • FRBR (Functional Requirements for Bibliographic Records)
  • Dublin Core (dc, dcterms)
  • SKOS (Simple Knowledge Organization System)
  • VOID (Vocabulary of Interlinked Datasets)
  • PROV-O (Provenance Ontology)
  • Custom Legalis ontology

§Linked Data Features

  • Cool URIs for legal resources (ELI-style, hierarchical, flat patterns)
  • URI dereferencing with content negotiation
  • owl:sameAs linking for entity resolution
  • rdfs:seeAlso for related resources
  • Integration with EUR-Lex, legislation.gov.uk, Wikidata, DBpedia

§Additional Features

  • SHACL and ShEx validation
  • SPARQL query generation
  • Streaming serialization for large datasets
  • Export caching
  • RDFa output for HTML embedding
  • Provenance tracking (PROV-O)
  • License metadata (Creative Commons, etc.)

See EXAMPLES.md for detailed usage examples.

Modules§

audit_log
Audit logging for knowledge graph access and operations.
av_annotation
Audio/video annotation for legal multimedia content.
bitemporal
Bitemporal knowledge modeling for legal data.
blockchain
Blockchain-anchored provenance for legal knowledge graphs.
cache
Export caching for improved performance.
competency_questions
Competency question testing for ontology validation.
compliance
Compliance reporting from knowledge graphs.
content_addressed
Content-addressed RDF storage using cryptographic hashing.
continuous_query
Continuous query evaluation for real-time legal intelligence.
crossmodal_reasoning
Cross-modal reasoning for legal knowledge graphs.
crowdsourced_evolution
Crowdsourced ontology evolution framework.
dcat
DCAT (Data Catalog Vocabulary) support for dataset publishing.
did
Decentralized Identifier (DID) support for legal resources.
document_layout
Document layout representation for knowledge graphs.
embeddings
Graph embedding generation for knowledge graphs.
enterprise_deployment
Enterprise knowledge graph deployment framework.
entity_linking
Entity linking for legal knowledge graphs.
external
External data source integrations.
fusion
Legal knowledge fusion for integrating data from multiple sources.
geosparql
GeoSPARQL 1.1 support for legal jurisdictions and spatial reasoning.
governance
Knowledge governance workflows for enterprise RDF management.
image_rdf
Image-to-RDF extraction for legal documents.
ipld
IPLD (InterPlanetary Linked Data) support for legal knowledge graphs.
jurisdiction_queries
Jurisdiction geometry query support for legal knowledge graphs.
kg_completion
Knowledge graph completion for legal knowledge graphs.
knowledge_graph
Knowledge graph construction and entity relationship extraction.
ldn
Linked Data Notifications (LDN) support.
link_prediction
Embedding-based link prediction for legal knowledge graphs.
linked_data
Linked Data features for Legalis-LOD.
map_exploration
Map-based knowledge exploration for legal geographic data.
multimodal_alignment
Multi-modal entity alignment for legal knowledge graphs.
neural_symbolic
Neural-symbolic reasoning integration for combining neural networks with symbolic reasoning.
ontology
Legal ontology support for Legalis-LOD.
ontology_alignment
Ontology alignment tools for mapping between different ontologies.
ontology_learning
Ontology learning from legal text.
ontology_metrics
Ontology metrics and quality assessment.
ontology_versioning
Ontology versioning with change tracking.
quality
Data quality metrics for RDF/LOD data.
rbac
Role-Based Access Control (RBAC) for RDF data.
rdfa
RDFa (RDF in Attributes) output for HTML embedding.
rdfstar
RDF-star (RDF*) support for making statements about statements.
realtime
Real-time graph updates with pub/sub and incremental materialization.
reasoning
OWL 2 RL reasoning and legal-specific inference rules.
relation_extraction
Automatic relation extraction for legal knowledge graphs.
shacl
SHACL (Shapes Constraint Language) shape generation.
shex
ShEx (Shape Expressions) schema generation.
similarity
Semantic similarity indexing for efficient similarity search.
sparql
SPARQL query generation and endpoint support for exported RDF data.
sparqlstar
SPARQL-star query support for querying RDF-star data.
spatial_reasoning
Spatial reasoning for legal zones and geographic constraints.
store
In-memory RDF triple store with optional persistence.
streaming
Streaming RDF serialization for large datasets.
streaming_sparql
Streaming SPARQL query processing for continuous data flows.
temporal_consistency
Temporal consistency checking for time-aware legal knowledge graphs.
temporal_rdf
Temporal RDF with RDF-star support for time-aware legal knowledge graphs.
time_aware_queries
Time-aware SPARQL queries for temporal legal knowledge graphs.
validation
RDF validation utilities.
verifiable
Verifiable Credentials for legal data.
versioning
Dataset versioning and change tracking.
void_desc
VOID (Vocabulary of Interlinked Datasets) descriptions.

Structs§

LicenseInfo
License information for RDF export.
LodExporter
LOD exporter for legal statutes.
Namespaces
Standard namespace prefixes for legal ontologies.
ProvenanceInfo
Provenance information for RDF export.
Triple
RDF triple representation.

Enums§

LodError
Errors during LOD export.
RdfFormat
RDF serialization format.
RdfValue
RDF object value types.

Type Aliases§

LodResult
Result type for LOD operations.