Sei sulla pagina 1di 5

psql -d [dbname] -U [user]

\d
<= Lista tabelas
\d [table] <= lista estrutura da tabela
SELECT eperson_id,firstname from eperson where firstname like '%Paulo%' and last
name like '%Marques%';
eperson_id | firstname
-----------+-----------------6
| Ccera
1
| Vitor Hugo
136
| Tiago
37
| Luis Guilherme
43
| Patricia Stilpen
????
| Bruno
2
| Cla Mara
204
| Paulo Marques
-----------+-----------------SELECT item_id, submitter_id, last_modified, owning_collection from item where s
ubmitter_id=204 order by last_modified DESC limit 10;
item_id | submitter_id | in_archive | withdrawn |
last_modified
|
owning_collection
---------+--------------+------------+-----------+----------------------------+-----------------3242 |
204 | t
| f
| 2012-04-03 14:25:27.755-03 |
78
4171 |
204 | t
| f
| 2012-02-13 11:34:22.057-02 |
35
4169 |
204 | t
| f
| 2012-02-09 15:10:25.336-02 |
35
4164 |
204 | t
| f
| 2012-02-09 14:50:01.107-02 |
35
4168 |
204 | t
| f
| 2012-02-09 11:11:04.694-02 |
35
3991 |
204 | t
| f
| 2011-11-09 12:45:54.111-02 |
84
3990 |
204 | t
| f
| 2011-11-09 12:45:54.015-02 |
84
3989 |
204 | t
| f
| 2011-11-09 12:45:53.912-02 |
84
3988 |
204 | t
| f
| 2011-11-09 12:45:53.803-02 |
84
3987 |
204 | t
| f
| 2011-11-09 12:45:53.71-02 |
84
SELECT collection_id,name from collection where collection_id=78;
collection_id |
name
---------------+------------------------------------------------------------------78 | ICICT - Trabalhos de Concluso de Curso - Especializao ICTS - RJ
SELECT * from handle where resource_id=3242;

handle_id | handle | resource_type_id | resource_id


-----------+------------+------------------+------------2957 | icict/2957 |
2 |
3242
SELECT text_value from metadatavalue where item_id=3242 and metadata_field_id=28
;
obs.: metadata_field_id=28

<= dc.description.provenance

text_value
------------------------------------------------------------------------------------------Made available in DSpace on 2011-09-06T14:12:19Z (GMT). No. of bitstreams: 2\r
license.txt: 1748 bytes, checksum: 8a4605be74aa9ea9d79846c1fba20a33 (MD5)\r
Projeto_Michele-2006.pdf: 157848 bytes, checksum: e748d73b19f56327fe03f3fcc86d2
9d1 (MD5)\r
Previous issue date: 2006-11
_|_|_|_|_|
_|
_|
_| _|_|_|
_|
_|
_|
_|
_|_|_|_|_|

_|_|_|_|
_|
_|
_|
_|
_|_|_|_|
_| _|
_|
_|
_|
_|

_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|_|_|_|_|

_|_|_|_|
_|
_|
_|
_|
_|_|_|_|
_|
_|
_|

_|_|_|_|_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|_|_|_|_|

SELECT * from epersongroup;


eperson_group_id |
name
------------------+--------------------------------0 | Anonymous
1 | Administrator
2 | COLLECTION_26_SUBMIT
SELECT * FROM epersongroup2eperson where eperson_group_id=1;
id | eperson_group_id | eperson_id
------+------------------+-----------4766 |
1 |
4
4767 |
1 |
24
4768 |
1 |
36
4769 |
1 |
204
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
\/\/\/\/\/\/\/
_|_|_|_|_|
_|
_|
_|
_|
_|_|_|_|_|
_|
_|
_|
_|
_|
_|

_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|_|_|_|_|

_|_|_|_|
_|_|_|_|_| _|_|_|_|_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|
_|_|_|_|
_|_|_|_|_|
_|
Audit - Afiliao

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
/\/\/\/\/\/\/\

SELECT collection_id,name from collection where name like '%ICICT%';


collection_id |
name
---------------+------------------------------------------------------------------49 | ICICT - Vdeos
47 | ICICT - Trabalhos de Concluso de Curso - Especializao C&S
39 | ICICT - Dissertaes de Mestrado dos Profissionais
40 | ICICT - Teses de Doutorado dos Profissionais
73 | ICICT - Manuais e Procedimentos Tcnicos
34 | ICICT - Artigos de Peridicos
35 | ICICT - Captulos de Livros
36 | ICICT - Relatrios de Pesquisa
78 | ICICT - Trabalhos de Concluso de Curso - Especializao ICTS - RJ
79 | ICICT - Trabalhos de Concluso de Curso - Especializao ICTS - RS
37 | ICICT - Relatrios Institucionais
38 | ICICT - Trabalhos Apresentados em Eventos
76 | ICICT - Livros Publicados
SELECT item_id from item where owning_collection = 34;
item_id
--------1226
1062
1058
1059
1057
1064
2710
1065
1061
1068
....
SELECT * from handle where resource_id=3871;

=> id do objeto digital

handle_id | handle | resource_type_id | resource_id


-----------+------------+------------------+------------3558 | icict/3558 |
2 |
3871
^^^^
SELECT metadata_field_id,metadata_schema_id,element,qualifier from metadatafield
registry where element='contributor' and qualifier='author';
metadata_field_id | metadata_schema_id | element | qualifier
-------------------+--------------------+-------------+----------3 |
1 | contributor | author
SELECT metadata_field_id,metadata_schema_id,element,qualifier from metadatafield
registry where element='creator' and qualifier like '%liation%';
metadata_field_id | metadata_schema_id | element | qualifier
-------------------+--------------------+---------+-------------85 |
1 | creator | affilliation

SELECT text_value from metadatavalue where item_id=3871 and (metadata_field_id=3


or metadata_field_id=85);
^^^^
^^^^^^^^^^^^^^
SELECT metadata_field_id,metadata_schema_id,element,qualifier from metadatafield
registry where element='identifier' and qualifier='uri';
metadata_field_id | metadata_schema_id | element | qualifier
-------------------+--------------------+------------+----------25 |
1 | identifier | uri
SELECT text_value from metadatavalue where metadata_field_id=25;
^^^^^^^^^^^^^^
_|_|_|
_|
_|
_|_|_|
_|
_|
_|_|_|

_| _|_|_| _|_|_| _|_|_|


_| _| _|
_| _|
_| _| _|_|_| _|_|_|
_| _|
_| _|_|
_| _| _|_|_| _| _|

_|_|_|
_|
_|_|_|
_|
_|_|_|

_|_|_|
_| _|
_|_|_|
_| _|
_| _|

_|
_|
_|_| _|_|
_| _| _|
_|
_|
_|
_|

select item_id from item where owning_collection=39;


item_id
--------1293
1300
1291
4001
3104
2998
3113
(7 registros)
select item_id,bundle_id from item2bundle where item_id=3113;
item_id | bundle_id
---------+----------3113 |
8391
3113 |
5460
3113 |
5459
(3 registros)
select bundle_id, bitstream_id from bundle2bitstream where bundle_id=8391;
bundle_id | bitstream_id
-----------+-------------8391 |
8482
select bundle_id, bitstream_id from bundle2bitstream where bundle_id=5460;
bundle_id | bitstream_id
-----------+-------------5460 |
5516
(1 registro)
select bundle_id, bitstream_id from bundle2bitstream where bundle_id=5459;
bundle_id | bitstream_id

-----------+-------------5459 |
5515
SELECT bitstream_id, internal_id, name from bitstream where ((bitstream_id=8482)
or(bitstream_id=5516)or(bitstream_id=5515));
bitstream_id |
internal_id
|
name
--------------+----------------------------------------+-----------------------------------5516 | 40437328445862940370645739458683304915 | license.txt
5515 | 26656913596495939931773541116477665946 | dissertao_final_conceicao.p
df
8482 | 65891087605366570436597130937995053094 | dissertao_final_conceicao.p
df.txt
(3 registros)
SELECT bitstream_id, bitstream_format_id, internal_id, name from bitstream where
((bitstream_id=8482)or(bitstream_id=5516)or(bitstream_id=5515));
bitstream_id | bitstream_format_id |
internal_id
|
name
--------------+---------------------+----------------------------------------+-----------------------------------5516 |
2 | 40437328445862940370645739458683304915 | l
icense.txt
5515 |
4 | 26656913596495939931773541116477665946 | d
issertao_final_conceicao.pdf
8482 |
6 | 65891087605366570436597130937995053094 | d
issertao_final_conceicao.pdf.txt
Obs.: 65891087605366570436597130937995053094 o PDF que se encontra em...
[dspace]/assetstore/65/89/10/65891087605366570436597130937995053094

Potrebbero piacerti anche