Package cz.cvut.kbss.ontodriver.model
Class NamedResource
java.lang.Object
cz.cvut.kbss.ontodriver.model.NamedResource
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Assertion
Represents named resources, i.e., resources identified by a URI.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic NamedResourceCreates new named resource from the specified string identifier.static NamedResourceCreates new named resource from the specified URI.booleanGets the identifier of this resource.inthashCode()toString()
-
Method Details
-
getIdentifier
Gets the identifier of this resource.- Returns:
- URI
-
hashCode
public int hashCode() -
equals
-
toString
-
create
Creates new named resource from the specified URI.- Parameters:
uri- Resource identifier- Returns:
- NamedResource instance
-
create
Creates new named resource from the specified string identifier.- Parameters:
iri- Resource identifier- Returns:
- NamedResource instance
-