public class NamedResourceGenerator extends Object
NamedResourceGenerator class.
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_NAME_LENGTH
Constant
MAX_NAME_LENGTH=30 |
static int |
PREFFERRED_NAME_LENGTH
Constant
PREFFERRED_NAME_LENGTH=12 |
| Constructor and Description |
|---|
NamedResourceGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static com.hp.hpl.jena.rdf.model.Resource |
createNewResource(com.hp.hpl.jena.rdf.model.Model model,
URL urlBase,
String title)
createNewResource.
|
static com.hp.hpl.jena.rdf.model.Resource |
createNewResource(com.hp.hpl.jena.rdf.model.Model model,
URL urlBase,
String title,
Date date)
createNewResource.
|
static com.hp.hpl.jena.rdf.model.Resource |
createNewResourceFromSuffix(com.hp.hpl.jena.rdf.model.Model model,
URL urlBase,
String suffix)
createNewResourceFromSuffix.
|
static com.hp.hpl.jena.rdf.model.Resource |
createNewResourceFromSuffix(com.hp.hpl.jena.rdf.model.Model model,
URL urlBase,
String suffix,
Date date)
createNewResourceFromSuffix.
|
static String |
createURLPart(String title,
Date date)
This generates a relative URL starting with / represing a Resoure that
has no properties in the model yet and that starts with
/year/month/name[-ordinal].
|
public static final int MAX_NAME_LENGTH
MAX_NAME_LENGTH=30public static final int PREFFERRED_NAME_LENGTH
PREFFERRED_NAME_LENGTH=12public static String createURLPart(String title, Date date)
public static com.hp.hpl.jena.rdf.model.Resource createNewResource(com.hp.hpl.jena.rdf.model.Model model,
URL urlBase,
String title)
createNewResource.
public static com.hp.hpl.jena.rdf.model.Resource createNewResource(com.hp.hpl.jena.rdf.model.Model model,
URL urlBase,
String title,
Date date)
createNewResource.
public static com.hp.hpl.jena.rdf.model.Resource createNewResourceFromSuffix(com.hp.hpl.jena.rdf.model.Model model,
URL urlBase,
String suffix)
createNewResourceFromSuffix.
Copyright © 2017. All rights reserved.