RDF2Manifest

class RDF2Manifest extends RDFParser
Companion:
object
trait RDFParser
class Object
trait Matchable
class Any

Type members

Inherited types

type Err = Throwable
Inherited from:
RDFParser
type R[A] = Kleisli[IO, Config, A]
Inherited from:
RDFParser
type RDFParser[A] = EitherT[R, Err, A]

An RDFParser of values of type a takes a pointed node RDFNode and an RDFReader and tries to obtain a value of type a

An RDFParser of values of type a takes a pointed node RDFNode and an RDFReader and tries to obtain a value of type a

Inherited from:
RDFParser

Value members

Concrete methods

def getConfig[A]: ManifestParser[Config]
def liftParser[A](parser: RDFParser[A]): ManifestParser[A]
def oneOfPredicates(predicates: Seq[IRI]): RDFParser[IRI]

Inherited methods

def anyOf[A](ps: RDFParser[A]*): RDFParser[Seq[A]]

Applies a list of parsers If a parser fails, it continues with the rest of the list

Applies a list of parsers If a parser fails, it continues with the rest of the list

Returns:

the list of successful values that can be parsed

Inherited from:
RDFParser
def anyOfLs[A](ps: RDFParser[List[A]]*): RDFParser[Seq[A]]

Applies a list of parsers

Applies a list of parsers

Value parameters:
ps:

List of parsers. Each parser returns a list of values

Inherited from:
RDFParser
def arc[A](pred: IRI, parser: RDFParser[A]): RDFParser[A]
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
def checkExpected(obtained: RDFNode, expected: RDFNode, n: RDFNode): RDFParser[Boolean]
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
def checkNodes[A](ns: Set[RDFNode], parser: RDFParser[A], n: RDFNode, pred: IRI): RDFParser[Option[A]]
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
def combine[A](p1: RDFParser[Seq[A]], p2: RDFParser[Seq[A]]): RDFParser[Seq[A]]
Inherited from:
RDFParser
def combineAll[A](ps: RDFParser[Seq[A]]*): RDFParser[Seq[A]]

Combine a sequence of RDFParsers

Combine a sequence of RDFParsers

Inherited from:
RDFParser
Inherited from:
RDFParser

Returns the Decimal literal associated with a predicate p

Returns the Decimal literal associated with a predicate p

Value parameters:
p

predicate

Returns:

An RDFParser that returns the decimal literal associated with that predicate

Inherited from:
RDFParser
def firstOf[A](ps: RDFParser[A]*): RDFParser[A]

If a parser fails, it continues with the rest of the list

If a parser fails, it continues with the rest of the list

Returns:

the result of the first parser that succeeds of failure

Inherited from:
comb(`rest₂`,`p₂`))) }">RDFParser
def fromEither[A](e: Either[Err, A]): RDFParser[A]
Inherited from:
RDFParser
Inherited from:
RDFParser
def fromIO[A](x: IO[A]): RDFParser[A]
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
def group[A](parser: RDFParser[A], nodes: Seq[RDFNode]): RDFParser[Seq[A]]

Applies a parser over a sequence of nodes

Applies a parser over a sequence of nodes

Value parameters:
nodes

sequence of nodes

parser

parser

Inherited from:
RDFParser

Returns true if the current node does not have a given type

Returns true if the current node does not have a given type

Value parameters:
t

type to be checked

Inherited from:
RDFParser

Returns true if the current node has a given type

Returns true if the current node has a given type

Value parameters:
t

type to be checked

Inherited from:
RDFParser

Returns true if the current node has a type which belong to a given set of types

Returns true if the current node has a type which belong to a given set of types

Value parameters:
ts

set of types to be checked

Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser

Obtains an integer literal associated with a predicate in the current node

Obtains an integer literal associated with a predicate in the current node

Value parameters:
p

predicate

Inherited from:
RDFParser
def io2r[A](x: IO[A]): R[A]
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
def lift[A](r: R[A]): RDFParser[A]
Inherited from:
RDFParser
def liftIO[A](io: IO[A]): RDFParser[A]
Inherited from:
RDFParser

Parses a list of values. The list must contain at least one value

Parses a list of values. The list must contain at least one value

Inherited from:
RDFParser
def list1PlusAux[A](p: RDFParser[A], visited: List[RDFNode]): RDFParser[List[A]]
Inherited from:
RDFParser

Parses a list of values. The list must contain at least two values

Parses a list of values. The list must contain at least two values

Inherited from:
RDFParser
def mapRDFParser[A, B](ls: List[A], p: A => RDFParser[B]): RDFParser[List[B]]
Inherited from:
RDFParser
Inherited from:
RDFParser

RDFParser that retrieves the object associated with current node for a given predicate

RDFParser that retrieves the object associated with current node for a given predicate

Fails if there are more than one object

Value parameters:
p

predicate

Inherited from:
RDFParser

RDFParser that retrieves the set of iriObjects associated with the current node for a given predicate

RDFParser that retrieves the set of iriObjects associated with the current node for a given predicate

Value parameters:
p

predicate

Inherited from:
RDFParser
Inherited from:
RDFParser
def ok[A](x: A): RDFParser[A]
Inherited from:
RDFParser
def opt[A](pred: IRI, parser: RDFParser[A]): RDFParser[Option[A]]
Inherited from:
RDFParser
def optional[A](parser: RDFParser[A]): RDFParser[Option[A]]

An RDF parser that parses a value of type a if possible

An RDF parser that parses a value of type a if possible

Inherited from:
RDFParser
def parse[A](parser: RDFParser[A], node: RDFNode, rdf: RDFReader): IO[Either[Err, A]]
Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser
def parseNodes[A](nodes: List[RDFNode], parser: RDFParser[A]): RDFParser[List[A]]
Inherited from:
RDFParser
def parseOk[A](x: A): RDFParser[A]
Inherited from:
RDFParser
def parsePredicate[A](p: IRI, maker: RDFNode => A): RDFParser[A]
Inherited from:
RDFParser
def parsePredicateIRI[A](p: IRI, maker: IRI => A): RDFParser[A]
Inherited from:
RDFParser
def parsePredicateIRIList[A](p: IRI, maker: IRI => A): RDFParser[List[A]]
Inherited from:
RDFParser
def parsePredicateInt[A](p: IRI, maker: Int => A): RDFParser[A]
Inherited from:
RDFParser
def parsePredicateIntList[A](p: IRI, maker: Int => A): RDFParser[List[A]]
Inherited from:
RDFParser
def parsePredicateList[A](p: IRI, maker: RDFNode => A): RDFParser[List[A]]
Inherited from:
RDFParser
def parsePredicateLiteral[A](p: IRI, maker: Literal => A): RDFParser[A]
Inherited from:
RDFParser
Inherited from:
RDFParser
def parsePredicateString[A](p: IRI, maker: String => A): RDFParser[A]
Inherited from:
RDFParser
def parseRest[A](visited: List[RDFNode], restNode: RDFNode, parser: RDFParser[A]): RDFParser[List[A]]
Inherited from:
RDFParser

A parser of the RDF List associated with the current node

A parser of the RDF List associated with the current node

Fails if there are more than one iriObjects associated with rdf_first or rdf_rest

Inherited from:
RDFParser
Inherited from:
RDFParser
Inherited from:
RDFParser

Obtains the RDF list associated with a predicate for the current node

Obtains the RDF list associated with a predicate for the current node

Value parameters:
p

predicate

Inherited from:
RDFParser

Obtains the RDF list associated with a predicate for the current node If there is no value, returns the empty list

Obtains the RDF list associated with a predicate for the current node If there is no value, returns the empty list

Value parameters:
p

predicate

Inherited from:
RDFParser
Inherited from:
RDFParser

Returns a parser that obtains the type associated with the current node

Returns a parser that obtains the type associated with the current node

Fails if there are more than one type associated

Inherited from:
RDFParser

Returns a parser that obtains the set of types associated with the current node

Returns a parser that obtains the set of types associated with the current node

Inherited from:
RDFParser
def sequenceEither[E, A](xs: List[Either[E, A]]): Either[E, List[A]]
Inherited from:
RDFParser
def someOf[A](ps: RDFParser[A]*): RDFParser[A]

Checks if some of the parsers pass and returns the corresponding value

Checks if some of the parsers pass and returns the corresponding value

Value parameters:
ps

sequence of parsers

Inherited from:
:Nothing<:Any]=>IO[A],Config,Throwable](asyncForIO)) ps.foldLeft[EitherT[R,Err,A]](zero)(((`c₂`:RDFParser[A],`parser₂`:RDFParser[A])=>cmb(`c₂`,`parser₂`))) }">RDFParser
def star[A](pred: IRI, parser: RDFParser[A]): RDFParser[List[A]]
Inherited from:
RDFParser
def starWithNodes[A](pred: IRI, parser: RDFParser[A]): RDFParser[List[(RDFNode, A)]]
Inherited from:
RDFParser
def stream2list[A](st: Stream[IO, A]): IO[Vector[A]]
Inherited from:
RDFParser
Inherited from:
RDFParser

Returns the String associated with a predicate p

Returns the String associated with a predicate p

Value parameters:
p

predicate

Returns:

An RDFParser that returns the String associated with that predicate

Inherited from:
RDFParser
Inherited from:
RDFParser
def withNode[A](n: RDFNode, parser: RDFParser[A]): RDFParser[A]
Inherited from:
RDFParser
def withRdf[A](rdf: RDFReader, parser: RDFParser[A]): RDFParser[A]
Inherited from:
RDFParser

Concrete fields