View Javadoc

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *  http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   */
    17
    18  package org.apache.any23.vocab;
    19
    20  import org.eclipse.rdf4j.model.IRI;
    21
    22  /**
    23   * Vocabulary definitions from vocabularies/review.rdf
    24   */
    25  public class Review extends Vocabulary {
    26
    27      private static Review instance;
    28
    29      public static Review getInstance() {
    30          if (instance == null) {
    31              instance = new Review();
    32          }
    33          return instance;
    34      }
    35
    36      /**
    37       * The namespace of the vocabulary as a string.
    38       */
    39      public static final String NS = "http://purl.org/stuff/rev#";
    40
    41      /**
    42       * The namespace of the vocabulary as a IRI.
    43       */
    44      public final IRI NAMESPACE = createIRI(NS);
    45
    46      /**
    47       * The commenter on the review.
    48       */
    49      public final IRI commenter = createProperty("commenter");
    50
    51      /**
    52       * Used to associate a review with a comment on the review.
    53       */
    54      public final IRI hasComment = createProperty("hasComment");
    55
    56      /**
    57       * Associates a review with a feedback on the review.
    58       */
    59      public final IRI hasFeedback = createProperty("hasFeedback");
    60
    61      /**
    62       * Associates a work with a a review.
    63       */
    64      public final IRI hasReview = createProperty("hasReview");
    65
    66      /**
    67       * A numeric value.
    68       */
    69      public final IRI maxRating = createProperty("maxRating");
    70
    71      /**
    72       * A numeric value.
    73       */
    74      public final IRI minRating = createProperty("minRating");
    75
    76      /**
    77       * Number of positive usefulness votes (integer).
    78       */
    79      public final IRI positiveVotes = createProperty("positiveVotes");
    80
    81      /**
    82       * A numeric value.
    83       */
    84      public final IRI rating = createProperty("rating");
    85
    86      /**
    87       * The person that has written the review.
    88       */
    89      public final IRI reviewer = createProperty("reviewer");
    90
    91      /**
    92       * The text of the review.
    93       */
    94      public final IRI text = createProperty("text");
    95
    96      /**
    97       * The title of the review.
    98       */
    99      public final IRI title = createProperty("title");
    100
    101     /**
    102      * Number of usefulness votes (integer).
    103      */
    104     public final IRI totalVotes = createProperty("totalVotes");
    105
    106     /**
    107      * The type of media of a work under review.
    108      */
    109     public final IRI type = createProperty("type");
    110
    111     /**
    112      * A comment on a review.
    113      */
    114     public final IRI Comment = createProperty("Comment");
    115
    116     /**
    117      * Feedback on the review. Expresses whether the review was useful or not.
    118      */
    119     public final IRI Feedback = createProperty("Feedback");
    120
    121     /**
    122      * A review of an work.
    123      */
    124     public final IRI Review = createProperty("Review");
    125
    126     private IRI createProperty(String localName) {
    127         return createProperty(NS, localName);
    128     }
    129
    130     private Review() {
    131         super(NS);
    132     }
    133
    134 }