OWLNamespace
@interface OWLNamespace : NSObject <NSCopying>
Represents OWL/RDF namespaces.
-
The prefix of this namespace.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull prefix;
Swift
var prefix: String { get }
-
The short name of this namespace.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull shortName;
Swift
var shortName: String { get }
-
The designated initializer.
Declaration
Objective-C
- (nonnull instancetype)initWithPrefix:(nonnull NSString *)prefix shortName:(nonnull NSString *)shortName;
Swift
init(prefix: String, shortName: String)
-
Returns a new OWLIRI by appending the given fragment to the prefix of this namespace.
Declaration
Objective-C
- (nonnull OWLIRI *)IRIWithFragment:(nonnull NSString *)fragment;
Swift
func iri(withFragment fragment: String) -> OWLIRI
Parameters
fragment
Fragment to append to the prefix.
Return Value
The created OWLIRI instance.
-
Returns a new NSString by appending the given fragment to the prefix of this namespace.
Declaration
Objective-C
- (nonnull NSString *)stringWithFragment:(nonnull NSString *)fragment;
Swift
func string(withFragment fragment: String) -> String
Parameters
fragment
Fragment to append to the prefix.
Return Value
The created NSString instance.