[][src]Trait rome::resource::ResourceBase

pub trait ResourceBase<'g>: Clone + Ord {
    type Graph: Graph<'g>;
    fn new(
        this: Resource<'g, <Self::Graph as Graph<'g>>::BlankNodePtr, <Self::Graph as Graph<'g>>::IRIPtr, <Self::Graph as Graph<'g>>::LiteralPtr>,
        graph: &'g OntologyAdapter<'g, Self::Graph>
    ) -> Self;
fn iter(graph: &'g OntologyAdapter<'g, Self::Graph>) -> Self::SubjectIter;
fn this(
        &self
    ) -> &Resource<'g, <Self::Graph as Graph<'g>>::BlankNodePtr, <Self::Graph as Graph<'g>>::IRIPtr, <Self::Graph as Graph<'g>>::LiteralPtr>;
fn adapter(&self) -> &'g OntologyAdapter<'g, Self::Graph>; fn iter_objects<O>(
        &self,
        predicate: Option<&<Self::Graph as Graph<'g>>::IRIPtr>
    ) -> ObjectIter<'g, O>
    where
        O: ResourceBase<'g, Graph = Self::Graph>,
        Self: 'g
, { ... }
fn iri(&self) -> Option<IRI<'g, Self>> { ... } }

Base trait for all ontology traits.

Associated Types

Type of the graph that on which this resource is mapped.

Required Methods

Wrap a [Resource][graph] with an ontology class. And link a [ResourceBase][resource]

Iterate over all instances of this class

The Resource that underlies this wrapper.

The adapter that wraps the graph.

Provided Methods

Important traits for ObjectIter<'g, R>

iterate over all the objects for this subject and the given predicate

Return this resource as an IRI, if it is an IRI.

Implementors

impl<'g, G: 'g> ResourceBase<'g> for Alt<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for Bag<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for HTML<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for LangString<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for List<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for PlainLiteral<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for Property<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for Seq<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for Statement<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for XMLLiteral<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for Class<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for Container<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for ContainerMembershipProperty<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for Datatype<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for Literal<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, G: 'g> ResourceBase<'g> for Resource<'g, G> where
    G: Graph<'g>, 
[src]

Important traits for SubjectIter<'g, R>

Important traits for ObjectIter<'g, R>

impl<'g, R: 'g> ResourceBase<'g> for IRI<'g, R> where
    R: ResourceBase<'g>, 
[src]

Important traits for ObjectIter<'g, R>