Skip to main content

Crate rudof_lib

Crate rudof_lib 

Source
Expand description

rudof_lib presents the public API to interact with rudof programmatically

Re-exports§

pub use oxrdf;
pub use rudof_rdf;
pub use shacl_ir;
pub use shacl_validation;
pub use input_spec::*;
pub use rudof::*;
pub use rudof_config::*;
pub use rudof_error::*;
pub use selector::*;
pub use shapes_graph_source::*;

Modules§

ast
compact
ShEx compact syntax parser
data
data_format
error
input_spec
ir
node
node_info
pred
query
query_result_format
query_type
resolve_method
result_shacl_validation_format
result_shex_validation_format
rudof
rudof_config
rudof_error
selector
shacl
shacl_format
shapemap
This module defines ShapeMaps
shapemap_format
shapes_graph_source
shex
shex_format
shexr
sort_by_result_shape_map
terminal_width

Macros§

iri
Generates an IriS from a string literal.
iri_once
This macro creates a static IriS variable that is initialized once and can be accessed globally.
static_once
This macro creates a static variable that is initialized once andm can be accessed globally.

Structs§

Annotation
BNode
FromStrRefError
IriS
LocatedParseError
A ShExParseError at a certain location
Node
NodeConstraint
Pattern
Pred
Schema
SemAct
ShExFormatter
Struct that can be used to pretty print ShEx schemas
ShExParser
ShExRVocab
Shape
ShapeDecl
ShapeExprWrapper
ShapeLabelIdx
ShapeMapParser
ShapemapFormatter
Struct that can be used to pretty print Shapemaps
SimpleReprSchema
SimpleReprShape
StartAction
StringOrIriStemWrapper
StringOrLiteralStemWrapper
TripleExprWrapper

Enums§

Iri
An IRI that can be either a raw String or a parsed IriS
IriOrStr
IriOrStr represents either an IRI or a String. This enum is used mainly for parsing ShEx schemas which contain an import declaration The value of the import declaration can be a well formed IRI or a relative IRI which is kept as a string
IriRefOrWildcard
LangOrWildcard
LangOrWildcardParseError
NodeKind
NumericFacet
ObjectValue
An object value can be either an IRI reference or a literal It is used in various places in ShEx, for example in ValueSetValue, or as focus node in ShapeMap It is similar to srdf::Object but does not include blank nodes
ParseError
PatternError
RefError
ResolveMethod
Method employed to resolve imports when ghessing the format of an import
SchemaIRError
SchemaJsonError
ShExFormat
Contains possible ShEx formats
ShapeExpr
ShapeExprLabel
StringFacet
StringOrIriStem
StringOrIriStemError
StringOrLiteralStem
StringOrLiteralStemError
StringOrWildcard
StringOrWildcardError
TripleExpr
TripleExprLabel
ValueSetValue
XsFacet

Constants§

SX
SX_ABSTRACT
SX_ANNOTATION
SX_ANNOTATION_PROP
SX_BNODE
SX_CLOSED
SX_CODE
SX_DATATYPE
SX_EACHOF
SX_EXCLUSION
SX_EXPRESION
SX_EXPRESIONS
SX_EXTRA
SX_FLAGS
SX_FRACTIONDIGITS
SX_INF
SX_INVERSE
SX_IRI
SX_IRISTEM
SX_IRISTEMRANGE
SX_LANGUAGESTEM
SX_LANGUAGESTEMRANGE
SX_LENGTH
SX_LITERAL
SX_LITERALSTEM
SX_LITERALSTEMRANGE
SX_MAX
SX_MAXEXCLUSIVE
SX_MAXINCLUSIVE
SX_MAXLENGTH
SX_MIN
SX_MINEXCLUSIVE
SX_MININCLUSIVE
SX_MINLENGTH
SX_NAME
SX_NEGATED
SX_NODECONSTRAINT
SX_NODEKIND
SX_NONLITERAL
SX_OBJECT
SX_ONEOF
SX_PATTERN
SX_PREDICATE
SX_SCHEMA
SX_SEMACT
SX_SEMACTS
SX_SHAPE
SX_SHAPES
SX_SHAPE_AND
SX_SHAPE_DECL
SX_SHAPE_EXPR
SX_SHAPE_EXPRS
SX_SHAPE_EXTERNAL
SX_SHAPE_NOT
SX_SHAPE_OR
SX_START
SX_STARTACTS
SX_STEM
SX_STEMRANGE
SX_TOTALDIGITS
SX_TRIPLECONSTRAINT
SX_VALUEEXPR
SX_VALUES
SX_WILDCARD

Statics§

HEX

Traits§

MimeType
Types that implement this trait can inform about their MIME-TYPE More information about MIME types: https://www.iana.org/assignments/media-types/media-types.xhtml

Functions§

hex
hex_refactor
literal
[13t] literal ::= rdfLiteral | numericLiteral | booleanLiteral
re_find
string
[135s] string ::= STRING_LITERAL1 | STRING_LITERAL_LONG1 | STRING_LITERAL2 | STRING_LITERAL_LONG2

Type Aliases§

Expr