TurtleSerializer class
Utility class for serializing/deserializing movies to/from Turtle format using proper RDF.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- aggregateRating → URIRef
-
final
- apiKeyType → URIRef
-
final
- comment → URIRef
-
final
- commentType → URIRef
-
final
- contentRating → URIRef
-
final
- datePublished → URIRef
-
final
- description → URIRef
-
final
- dob → URIRef
-
final
- filePath → URIRef
-
final
- gender → URIRef
-
final
- genre → URIRef
-
final
- hasApiKey → URIRef
-
final
- hasMovie → URIRef
-
final
- hasMovieList → URIRef
-
final
- identifier → URIRef
-
final
- image → URIRef
-
final
- keyValue → URIRef
-
final
- localNS → Namespace
-
final
- movieId → URIRef
-
final
- movieListType → URIRef
-
final
- movieNS → Namespace
-
final
- moviesProperty → URIRef
-
final
- moviestarDataNS → Namespace
-
final
- moviestarOntoNS → Namespace
-
final
- movieType → URIRef
-
final
- name → URIRef
-
final
- nameProperty → URIRef
-
final
- owlNS → Namespace
-
final
- ratingType → URIRef
-
final
- rdfsLabel → URIRef
-
final
- rdfsNS → Namespace
-
final
- rdfType → URIRef
-
final
- source → URIRef
-
final
- text → URIRef
-
final
- thumbnailUrl → URIRef
-
final
- userType → URIRef
-
final
- value → URIRef
-
final
- webId → URIRef
-
final
- xsdNS → Namespace
-
final
Static Methods
-
commentsFromTurtle(
String ttlContent) → Map< String, String> - Parses comments from TTL content using proper RDF parsing.
-
commentsToTurtle(
Map< String, String> comments) → String - Converts movie comments to TTL format using proper RDF triples.
-
commentsToTurtleWithJson(
Map< String, String> comments) → String - Enhanced comments serialization with JSON backup.
-
createApiKey(
String apiKeyId, String apiKeyValue, {String source = 'TMDB'}) → String - Creates an API key file in TTL format following the ontology structure.
-
createMovieList(
String movieListId, String listName, {List< Movie> ? movies, String? description}) → String - Creates a MovieList in TTL format following the ontology structure.
-
createUserProfile(
String userWebId, {String? apiKey, String? dobString, String? genderString, List< String> ? movieListIds}) → String - Creates a user profile in TTL format following the ontology structure.
-
generateId(
) → String - Generates a unique ID for resources.
-
movieListFromTurtle(
String ttlContent) → Map< String, dynamic> ? - Parses a MovieList from TTL content and extracts movies. Returns a map containing movieList metadata and movies list.
-
moviesFromTurtle(
String ttlContent) → List< Movie> - Parses movies from TTL content using proper RDF parsing.
-
moviesToTurtle(
List< Movie> movies, String listName) → String - Converts a list of movies to TTL format using proper RDF triples.
-
moviesToTurtleWithJson(
List< Movie> movies, String listName) → String - Enhanced serialization with JSON backup for compatibility.
-
movieWithUserDataFromTurtle(
String ttlContent) → Map< String, dynamic> ? - Parses a single movie with user data from TTL content. Returns a map containing the movie, rating, and comment.
-
movieWithUserDataToTurtle(
Movie movie, double? rating, String? comment) → String - Converts a single movie with user's personal rating and comment to TTL format. This creates a unified file containing both movie metadata and user's personal data.
-
movieWithUserDataToTurtleOntology(
Movie movie, double? rating, String? comment) → String - Updates a single movie with user's personal rating and comment following the ontology structure.
-
ratingsFromTurtle(
String ttlContent) → Map< String, double> - Parses ratings from TTL content using proper RDF parsing.
-
ratingsToTurtle(
Map< String, double> ratings) → String - Converts ratings map to TTL format using proper RDF triples.
-
ratingsToTurtleWithJson(
Map< String, double> ratings) → String - Enhanced ratings serialization with JSON backup.