|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.d2rq.lang.D2RQReader
public class D2RQReader
Creates a Mapping
from a Jena model representation
of a D2RQ mapping file.
TODO: Rewrite using the same logic as R2RMLReader to get better error reporting
Field Summary | |
---|---|
static String |
IRI_CHAR_REGEX
A regular expression that matches zero or more characters that are allowed inside IRIs |
Constructor Summary | |
---|---|
D2RQReader(Model mapModel,
String baseURI)
Constructs a new MapParser from a Jena model containing the RDF statements from a D2RQ mapping file. |
Method Summary | |
---|---|
static String |
absolutizeURI(String uri)
Turns a relative URI into an absolute one, by using the current directory's file: URI as a base. |
Mapping |
getMapping()
Starts the parsing process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String IRI_CHAR_REGEX
Constructor Detail |
---|
public D2RQReader(Model mapModel, String baseURI)
mapModel
- a Jena model containing the RDF statements from a D2RQ mapping filebaseURI
- used for relative URI patternsMethod Detail |
---|
public static String absolutizeURI(String uri)
uri
- Any URI
public Mapping getMapping()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |