> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-dependabot-npm-and-yarn-scripts-css-minify-npm.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ObjectRef

> TypeScript SDK 레퍼런스

export const GitHubLink = ({url, compact = false}) => <a href={url} target="_blank" rel="noopener noreferrer" className={compact ? "source-link" : "github-source-link"}>
    {compact ? "소스 보기" : <>
    <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
      <path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" />
    </svg>
    GitHub 소스 코드
      </>}
  </a>;

<GitHubLink url="https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/weaveObject.ts#L24" />

저장된 Weave 객체에 대한 레퍼런스입니다.

일반적으로 최종 사용자는 이 클래스를 직접 다룰 필요가 없습니다.

ObjectRef에는 Weave의 저장소 시스템에서 저장된 객체를 고유하게 식별하는
프로젝트 ID, 객체 ID, 다이제스트가 포함됩니다.

<h2 id="example">
  예시
</h2>

```ts twoslash theme={null}
// @noErrors
const ref = new ObjectRef('my-project', 'abc123', 'def456');
const uri = ref.uri(); // weave:///my-project/object/abc123:def456
```

<h2 id="constructor">
  생성자
</h2>

> **new ObjectRef**(`projectId`, `objectId`, `digest`): `ObjectRef`

<h3 id="parameters">
  매개변수
</h3>

<ParamField path="projectId" type="string" required />

<ParamField path="objectId" type="string" required />

<ParamField path="digest" type="string" required />

<h3 id="returns">
  반환값
</h3>

`ObjectRef`

<h2 id="properties">
  속성
</h2>

<h3 id="digest">
  digest
</h3>

> **digest**: `string`

***

<h3 id="objectid">
  objectId
</h3>

> **objectId**: `string`

***

<h3 id="projectid">
  projectId
</h3>

> **projectId**: `string`

<h2 id="methods">
  방법
</h2>

<h3 id="get">
  get()
</h3>

> **get**(): `Promise`\<`any`>

<h4 id="returns-2">
  반환값
</h4>

`Promise`\<`any`>

***

<h3 id="ui_url">
  ui\_url()
</h3>

> **ui\_url**(): `string`

<h4 id="returns-3">
  반환값
</h4>

`string`

***

<h3 id="uri">
  uri()
</h3>

> **uri**(): `string`

<h4 id="returns-4">
  반환값
</h4>

`string`

***

<h3 id="fromuri">
  fromUri()
</h3>

> `static` **fromUri**(`uri`): `ObjectRef`

Weave URI string으로 ObjectRef를 생성합니다.

<h4 id="parameters-2">
  매개변수
</h4>

<ParamField path="uri" type="string" required>
  다음 형식의 Weave URI: weave:///entity/project/object/name:digest
</ParamField>

<h4 id="returns-5">
  반환값
</h4>

`ObjectRef`

새로운 ObjectRef 인스턴스

<h4 id="throws">
  Throws
</h4>

URI 형식이 잘못되었거나 ObjectRef가 아닌 경우 오류

<h4 id="example-2">
  예시
</h4>

```ts twoslash theme={null}
// @noErrors
const ref = ObjectRef.fromUri('weave:///my-entity/my-project/object/my-dataset:abc123');
```
