Revision 52228
Added by Alessia Bardi almost 6 years ago
ResourceReader.java | ||
---|---|---|
41 | 41 |
|
42 | 42 |
|
43 | 43 |
public String getTitle(final Resource resource) { |
44 |
final Statement s = resource.getProperty(CRM.P1_is_identified_by);
|
|
44 |
final Statement s = resource.getProperty(CRM.P102_has_title);
|
|
45 | 45 |
if (s != null) { |
46 | 46 |
RDFNode obj = s.getObject(); |
47 | 47 |
if(obj.isLiteral()) return obj.asLiteral().getLexicalForm(); |
48 | 48 |
} |
49 |
//if we do not find the P1_is_identified_by, let's get the label
|
|
49 |
//if we do not find the crm:P102_has_title, let's get the label
|
|
50 | 50 |
return getLabel(resource); |
51 | 51 |
} |
52 | 52 |
|
Also available in: Unified diff
lets' put the title string in crm:P102_has_title