|
68 | 68 | import com.atomgraph.linkeddatahub.vocabulary.SIOC; |
69 | 69 | import com.atomgraph.linkeddatahub.server.util.Skolemizer; |
70 | 70 | import org.apache.jena.rdf.model.ModelFactory; |
| 71 | +import org.apache.jena.vocabulary.DCTerms; |
71 | 72 | import org.apache.jena.vocabulary.RDF; |
72 | 73 |
|
73 | 74 | /** |
@@ -442,26 +443,25 @@ private void regenerateMasterStylesheet(EndUserApplication app, com.atomgraph.li |
442 | 443 | /** |
443 | 444 | * Creates a package document item. |
444 | 445 | * |
445 | | - * @param packageDocModel the model to populate |
| 446 | + * @param model the model to populate |
446 | 447 | * @param packageDocumentURI the document URI |
447 | 448 | * @param container the container resource |
448 | 449 | * @param pkg the package resource |
449 | 450 | * @param slug the document slug |
450 | 451 | * @return the document item resource |
451 | 452 | */ |
452 | | - private Resource createPackageDocument(Model packageDocModel, |
| 453 | + private Resource createPackageDocument(Model model, |
453 | 454 | URI packageDocumentURI, |
454 | 455 | Resource container, |
455 | 456 | com.atomgraph.linkeddatahub.apps.model.Package pkg, |
456 | 457 | String slug) |
457 | 458 | { |
458 | | - Resource packageDocItem = packageDocModel.createResource(packageDocumentURI.toString()). |
| 459 | + return model.createResource(packageDocumentURI.toString()). |
459 | 460 | addProperty(RDF.type, DH.Item). |
460 | 461 | addProperty(SIOC.HAS_CONTAINER, container). |
461 | 462 | addLiteral(DH.slug, slug). |
| 463 | + addLiteral(DCTerms.title, pkg.getProperty(DCTerms.title).getString()). |
462 | 464 | addProperty(FOAF.primaryTopic, pkg); |
463 | | - |
464 | | - return packageDocItem; |
465 | 465 | } |
466 | 466 |
|
467 | 467 | /** |
|
0 commit comments