| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| REVIEW |
|
| 1.3333333333333333;1.333 |
| 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.openrdf.model.URI; | |
| 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 | 0 | if(instance == null) { |
| 31 | 0 | instance = new REVIEW(); |
| 32 | } | |
| 33 | 0 | 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 URI. | |
| 43 | */ | |
| 44 | 0 | public final URI NAMESPACE = createURI(NS); |
| 45 | ||
| 46 | /** | |
| 47 | * The commenter on the review. | |
| 48 | */ | |
| 49 | 0 | public final URI commenter = createProperty("commenter"); |
| 50 | ||
| 51 | /** | |
| 52 | * Used to associate a review with a comment on the review. | |
| 53 | */ | |
| 54 | 0 | public final URI hasComment = createProperty("hasComment"); |
| 55 | ||
| 56 | /** | |
| 57 | * Associates a review with a feedback on the review. | |
| 58 | */ | |
| 59 | 0 | public final URI hasFeedback = createProperty("hasFeedback"); |
| 60 | ||
| 61 | /** | |
| 62 | * Associates a work with a a review. | |
| 63 | */ | |
| 64 | 0 | public final URI hasReview = createProperty("hasReview"); |
| 65 | ||
| 66 | /** | |
| 67 | * A numeric value. | |
| 68 | */ | |
| 69 | 0 | public final URI maxRating = createProperty("maxRating"); |
| 70 | ||
| 71 | /** | |
| 72 | * A numeric value. | |
| 73 | */ | |
| 74 | 0 | public final URI minRating = createProperty("minRating"); |
| 75 | ||
| 76 | /** | |
| 77 | * Number of positive usefulness votes (integer). | |
| 78 | */ | |
| 79 | 0 | public final URI positiveVotes = createProperty("positiveVotes"); |
| 80 | ||
| 81 | /** | |
| 82 | * A numeric value. | |
| 83 | */ | |
| 84 | 0 | public final URI rating = createProperty("rating"); |
| 85 | ||
| 86 | /** | |
| 87 | * The person that has written the review. | |
| 88 | */ | |
| 89 | 0 | public final URI reviewer = createProperty("reviewer"); |
| 90 | ||
| 91 | /** | |
| 92 | * The text of the review. | |
| 93 | */ | |
| 94 | 0 | public final URI text = createProperty("text"); |
| 95 | ||
| 96 | /** | |
| 97 | * The title of the review. | |
| 98 | */ | |
| 99 | 0 | public final URI title = createProperty("title"); |
| 100 | ||
| 101 | /** | |
| 102 | * Number of usefulness votes (integer). | |
| 103 | */ | |
| 104 | 0 | public final URI totalVotes = createProperty("totalVotes"); |
| 105 | ||
| 106 | /** | |
| 107 | * The type of media of a work under review. | |
| 108 | */ | |
| 109 | 0 | public final URI type = createProperty("type"); |
| 110 | ||
| 111 | /** | |
| 112 | * A comment on a review. | |
| 113 | */ | |
| 114 | 0 | public final URI Comment = createProperty("Comment"); |
| 115 | ||
| 116 | /** | |
| 117 | * Feedback on the review. Expresses whether the review was useful or not. | |
| 118 | */ | |
| 119 | 0 | public final URI Feedback = createProperty("Feedback"); |
| 120 | ||
| 121 | /** | |
| 122 | * A review of an work. | |
| 123 | */ | |
| 124 | 0 | public final URI Review = createProperty("Review"); |
| 125 | ||
| 126 | private URI createProperty(String localName) { | |
| 127 | 0 | return createProperty(NS, localName); |
| 128 | } | |
| 129 | ||
| 130 | private REVIEW(){ | |
| 131 | 0 | super(NS); |
| 132 | 0 | } |
| 133 | ||
| 134 | } |