public class TemplateMatcher extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateMatcher.TemplatePrecedence |
| Constructor and Description |
|---|
TemplateMatcher(org.apache.jena.ontology.Ontology ontology) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.jena.ontology.Ontology |
getOntology() |
Template |
match(org.apache.jena.ontology.Ontology ontology,
CharSequence path)
Given a relative URI and URI template property, returns ontology class with a matching URI template, if any.
|
List<TemplateMatcher.TemplatePrecedence> |
match(org.apache.jena.ontology.Ontology ontology,
CharSequence path,
int level)
Matches path (relative URI) against URI templates in sitemap ontology.
|
Template |
match(URI uri,
URI base)
Given an absolute URI and a base URI, returns ontology class with a matching URI template, if any.
|
public TemplateMatcher(org.apache.jena.ontology.Ontology ontology)
public Template match(URI uri, URI base)
uri - absolute URI being matchedbase - base URIpublic List<TemplateMatcher.TemplatePrecedence> match(org.apache.jena.ontology.Ontology ontology, CharSequence path, int level)
ontology - sitemap ontologypath - URI pathlevel - public Template match(org.apache.jena.ontology.Ontology ontology, CharSequence path)
ontology - sitemap ontology modelpath - absolute path (relative URI)public org.apache.jena.ontology.Ontology getOntology()
Copyright © 2015–2019. All rights reserved.